Results 1 to 4 of 4
Thread: Lost password with MD5
Jun 11, 2003, 23:47 #1
- Join Date
- Jun 2001
- 0 Post(s)
- 0 Thread(s)
Lost password with MD5
I have one of my websites using a MD5 on the password but it seems that all the submitters are losing their password and details so I need to add a feature to retreave them.
I did a search for lost passwords but didn't turn up with anything I could learn off.
Here is what I have so far.
$sql = mysql_fetch_array(mysql_query("SELECT email, password FROM login WHERE email='$getemail'"));
$recoveremail = $sql["email"];
$recoverpass = $sql["password"];
// MD5 code here
echo "Your details have been emailed to you";
// mailout code here
<form method="post" action="<?=$PHP_SELF?>">
Your email: <input type="text" name="getemail"> | <input type="submit" name="submit" value="submit">