Codice PHP:
if((!$nome) || (!$cognome)|| (!$data_nascita)||(!$stato)|| (!$regione)|| (!$provincia) || (!$citta) || (!$email_address) || (!$username)){
echo 'Non hai inserito le seguenti informazioni:!
';
if(!$nome)
echo "Non hai riempito il campo nome.
";
if(!$cognome)
echo "Non hai riempito il campo cognome.
";
if(!$cognome)
echo "non hai riempito il campo cognome!.
";
if(!$data_nascita)
echo "non hai riempito il campo data di nascita
";
if(!$stato)
echo "non hai riempito il campo stato.
";
if(!$regione)
echo "non hai riempito il campo regione!.
";
if(!$provincia)
echo "non hai riempito il campo provincia.
";
if(!$citta)
echo "non hai riempito il campo citta!.
";
if(!$email_adress)
echo "non hai riempito il campo email.
";
if(!$cognome)
echo "non hai riempito il campo username.
";
include 'join_form.php'; // Show the form again!
/* End the error checking and if everything is ok, we'll move on to
creating the user account */
exit(); // if the error checking has failed, we'll exit the script!
}