I don't think it's code-bound, but here's the code: http://pastebin.com/yWJ5qpwN

What happens is... I input 2 different passwords, line 22 is for some reason entirely skipped. The script passes every verification, the SQL record is added, and further execution of code happens. User gets logged in and moved to index.php as if nothing happened. Obviously, I want it to verify username, password match and email, none of that happens, too bad.

What I did was comment-out redirect on line 43. Now the user is getting redirected towards message that passwords don't match, but user is getting logged in, even with the mismatch of passwords!!

How does that even happen? Doesn't PHP execute code line by line?

Edited by Aeonix

1 Year
Discussion Span
Last Post by cereal
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.