PHP and MySQL password change form with MD5 - TechRepublic
General discussion
November 10, 2005 at 07:22 AM
cphillips

PHP and MySQL password change form with MD5

by cphillips . Updated 20 years, 8 months ago

Hi,

Summary:
I am a beginner to PHP and MySQL. I have recently built my first user authentication web interface using PHP sessions, MySQL, and MD5. I can get the users to register, and then log in with a randomly generated password.

Problem:
My problem is no matter how hard I try I cannot get the change password form to work. I can get the variable to store the hash, but it wont “update” the MySQL database with the new hash.

Begging for help:
Could someone help me out and explain how to accomlish this? Ultimately I would like to be able (as the admin) to change a password to a temporary password for the user, and then the user can log on with the temporary password and change the temporary password to a new password.

Thank you for your time!

This discussion is locked

All Comments