Ghettobusta Posted April 17, 2007 Author Share Posted April 17, 2007 The elseifs make it skip to some code that is a few lines below... And the break gives the same errors as the end Visionner is fixed though, thanks!! Quote Link to comment https://forums.phpfreaks.com/topic/47380-validation-need-help-urgent/page/2/#findComment-231251 Share on other sites More sharing options...
Dragen Posted April 17, 2007 Share Posted April 17, 2007 glad you've got visionner.php fixed! I've had an idea.. might not work... change the first lot of if's from this: // Vérification des données entrées if ($hidden!="1") {exit();} if ($nom==""){print("Vous devez entrer un nom d'utilisateur.<br/>"); exit();} if ($password==""){print("Vous devez entrer un mot de passe.<br/>");exit();} if ($password2==""){print("Vous devez confirmer votre mot de passe.<br/>");exit();} if ($password!=$password2){print("Les deux mots de passe ne correspondent pas.<br/>"); exit();} //------------------------------ to this: // Vérification des données entrées if ($hidden!="1") {} if ($hidden="0"){ if ($nom==""){print("Vous devez entrer un nom d'utilisateur.<br/>"); exit();} if ($password==""){print("Vous devez entrer un mot de passe.<br/>");exit();} if ($password2==""){print("Vous devez confirmer votre mot de passe.<br/>");exit();} if ($password!=$password2){print("Les deux mots de passe ne correspondent pas.<br/>"); exit();} } //------------------------------ note.. change the 0 in this statement if ($hidden="0"){ to whatever it would be if not 1. EDIT: I've just changed the above code slightly.. removed the first exit(); Quote Link to comment https://forums.phpfreaks.com/topic/47380-validation-need-help-urgent/page/2/#findComment-231261 Share on other sites More sharing options...
Ghettobusta Posted April 17, 2007 Author Share Posted April 17, 2007 I don't know what hidden is when it's not 1 to tell you the truth... Quote Link to comment https://forums.phpfreaks.com/topic/47380-validation-need-help-urgent/page/2/#findComment-231316 Share on other sites More sharing options...
Dragen Posted April 17, 2007 Share Posted April 17, 2007 I'll presume it's 0 then. it's probably a variable that's either 1 or 0, like true or false Have you tried it? Quote Link to comment https://forums.phpfreaks.com/topic/47380-validation-need-help-urgent/page/2/#findComment-231324 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.