Quote:
Originally Posted by myslowquietlife
By the way i have only just mastered how to update/edit database using forms so i need this kinda simple
|
That's the only thing you need
Since you want to reset a user's password, you already know his username (or login name, or whatever), so you should be able to access the user's information in the database.
Now the only thing you need to do is update the password field in the database that refers to the user of which you have the username.
You probably store it as an md5, so you'll have to hash the random-generated password first:
Now update the password field by setting the
$hashedPassword and send the
$password to the user in a mail or somthing.