eranwein Posted March 3, 2006 Share Posted March 3, 2006 can anybody send me a link to a script that handles with sending a reminder email to a user that forgot his passwrod? Link to comment https://forums.phpfreaks.com/topic/4022-forgotten-password/ Share on other sites More sharing options...
fusionpixel Posted March 3, 2006 Share Posted March 3, 2006 [!--quoteo(post=351367:date=Mar 3 2006, 10:35 AM:name=eranwein)--][div class=\'quotetop\']QUOTE(eranwein @ Mar 3 2006, 10:35 AM) [snapback]351367[/snapback][/div][div class=\'quotemain\'][!--quotec--]can anybody send me a link to a script that handles with sending a reminder email to a user that forgot his passwrod?[/quote]Do you want a link to an already-made script that you can copy and paste or are you looking for a tutorial on how to do it? Link to comment https://forums.phpfreaks.com/topic/4022-forgotten-password/#findComment-13948 Share on other sites More sharing options...
eranwein Posted March 3, 2006 Author Share Posted March 3, 2006 i would prefer the first option, but any other help would also be appreciated. Link to comment https://forums.phpfreaks.com/topic/4022-forgotten-password/#findComment-13981 Share on other sites More sharing options...
michaellunsford Posted March 4, 2006 Share Posted March 4, 2006 Couldn't you just create a super-simple page that uses mail() to email him his reminder? This sounds too simple to want a pre-written script. Link to comment https://forums.phpfreaks.com/topic/4022-forgotten-password/#findComment-14065 Share on other sites More sharing options...
redarrow Posted March 4, 2006 Share Posted March 4, 2006 I hope this works for you.an example ok[code]<?phpif($go == "1"){mysql_connect("host","username","password");mysql_select_db(databaseName);$sql = @mysql_query("SELECT * FROM table WHERE username='$name' && email='$email' ");if(!$sql){echo "The user name and email do not match.";exit;}$query = mysql_query($sql);$fPass = mysql_fetch_array($query);mail($email, "Your Password", "User Name: ". $fPass[username] ."\nPassword: ". $fPass[password]);echo "Your Password has been sent to ". $email .".";}?><form action="<?= $PHP_SELF ?>" method="post">Name: <input type="text" name="name" size="24" border="0"><br>E-mail: <input type="text" name="email" size="24" border="0"><br><input type="hidden" name="go" value="1" border="0"><input type="submit" name="submitButtonName" border="0"></form>[/code]good luck. Link to comment https://forums.phpfreaks.com/topic/4022-forgotten-password/#findComment-14110 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.