Jump to content


Photo

forgotten password


  • Please log in to reply
4 replies to this topic

#1 eranwein

eranwein
  • Members
  • PipPip
  • Member
  • 22 posts

Posted 03 March 2006 - 04:35 PM

can anybody send me a link to a script that handles with sending a reminder email to a user that forgot his passwrod?

#2 fusionpixel

fusionpixel
  • Members
  • PipPipPip
  • Advanced Member
  • 64 posts

Posted 03 March 2006 - 04:53 PM

[!--quoteo(post=351367:date=Mar 3 2006, 10:35 AM:name=eranwein)--][div class=\'quotetop\']QUOTE(eranwein @ Mar 3 2006, 10:35 AM) View Post[/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?
Did you know there is a manual for PHP? [a href="http://" target="_blank"]http://www.php.net[/a]
Did you know there is a manual for mySQL? [a href="http://" target="_blank"]http://www.mysql.org[/a]

#3 eranwein

eranwein
  • Members
  • PipPip
  • Member
  • 22 posts

Posted 03 March 2006 - 07:48 PM

i would prefer the first option, but any other help would also be appreciated.

#4 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 04 March 2006 - 02:59 AM

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.

#5 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 04 March 2006 - 05:48 AM

I hope this works for you.
an example ok

<?php
if($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>
good luck.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users