i got a form make (to sign in) and now i want it to have a few rules, like all fields must be not empty, the passwoords must be the same ... etc. etc.
i made it with if else
now i get for the the last check a error with out it every think goes good
does anybody of u see what is wrong or does anybody got a better wat to make somethink like this.
Last edited by traxion on Mon Jan 23, 2006 4:23 pm; edited 1 time in total
i made it with if else
| Code: |
|
if ($_POST['nickname'] == $_POST['clean']) { echo "Je moet je Nickname invullen<BR>"; } else { echo ""; if ($_POST['email'] == $_POST['clean']) { echo "je moet je Emailadres invullen<BR>"; } else { echo ""; if ($_POST['voornaam'] == $_POST['clean']) { echo "je moet Voornaam invullen<BR>"; } else { echo ""; if ($_POST['achternaam'] == $_POST['clean']) { echo "je moet Achternaam invullen<BR>"; } else { echo ""; if ($_POST['passwoord'] == $_POST['clean']) { echo "je moet Wachtwoord invullen<BR>"; } else { echo ""; if($_POST['passwoord'] == $_POST['passwoord2']) { echo "je aanvraagd wordt nou verzonden<BR>"; }}}}}} else { echo "je moet je ww invullen";} |
now i get for the the last check a error with out it every think goes good
does anybody of u see what is wrong or does anybody got a better wat to make somethink like this.
Last edited by traxion on Mon Jan 23, 2006 4:23 pm; edited 1 time in total
