Basta un IF. Ad esempio:

Codice PHP:
<?php
if (!isset($_POST['nome']) || trim($_POST['nome']) == '') {
  die(
'Errore');
}
?>