hi there, nice simple query here...
//check to see is passwords match if($pasword1 != $password2) { print "Passwords Do Not Match!"; exit; }
even though the variables password1 and password2 match, it still prints the error message! Why?!
You could try:
if ($password1 === $password2) { //passwords match } else { exit("Passwords do not match!"); } //or if (strcmp($password1, $password2) == 0) { //passwords match } else { exit("Passwords do not match!"); }
you could also use trim() on the variables to ensure it isnt a whitespace problem.
sorted now, read the ultimate newbies post above 😃