authorandrew
11-09-2011, 02:40 PM
Hi all,
I'm working on a project which requires a password changer. In other words, if the user is logged in, to allow them to set a new username/password. Here is my code:
CODE REMOVED
Apparently the problem is in the else/if statements, but I can't figure out why, as the equality operators should be working. Instead, when I enter in two passwords, it displays as not matching, every time.
The username bit works perfectly. It's the password I'm having trouble with. Because it's not matching for some reason, it's also not updating in the database. What am I doing wrong?
Thanks,
Andrew
I'm working on a project which requires a password changer. In other words, if the user is logged in, to allow them to set a new username/password. Here is my code:
CODE REMOVED
Apparently the problem is in the else/if statements, but I can't figure out why, as the equality operators should be working. Instead, when I enter in two passwords, it displays as not matching, every time.
The username bit works perfectly. It's the password I'm having trouble with. Because it's not matching for some reason, it's also not updating in the database. What am I doing wrong?
Thanks,
Andrew