Se ($_Request['azione']=="registra") {
Se ($_REQUEST['errore']==1) echo "non hai inserito tutti i dati";
Se ($_REQUEST['errore']==2) echo "il nome utente è gia esistente!";
Se ($_REQUEST['errore']==3) echo "hai inserito una mail inesistente";
.
.
.
R E S T O D E L C O D I C E
.
.
.
Se (($mail=="") o ($nome=="") o ($pass==""))echo"<script>location='iscriviti.php?e rrore=1';</script>";
Se
il nome utente è gia esistente{
{
echo "<html>\n
<head>\n
<meta http-equiv=\"Refresh\" content=\"2;url=iscriviti.php?errore=2\" >\n
</head>\n
<body>\n
</p>\n
</body></html>\n";
}
.
.
.
R E S T O D E L C O D I C E
.
.
.
Nella parte HTML della pag ho un form
<form method="post" action="iscriviti.php?azione=registra">