Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- if ($pass==$pass2) check not working as expected


amznVibe - 12:18 pm on Nov 23, 2008 (gmt 0)


$pass = mysql_real_escape_string($pass);

That's probably your problem.
Slashes won't show up when displayed but they are in the string and will fail comparison. You also don't need to escape a string until you are ready to place it into the db via a mysql call.


Thread source:: http://www.webmasterworld.com/php/3792412.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com