Jump to content

gabe22

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

gabe22's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hey No offence to any of you but I'm not really asking for your expertise/opinion on security issues (I have my reasons for doing it this way )... please stay on the topic and if you can provide a solution, if you can't, don't bother replying. If you would like to discuss security issues, I'm sure there are other places in this forum. Thank you.
  2. I'm trying to use a password recovery script. The objective here is to send user their previous password when they enters their email address in the input box Bellow is the php script: <?php if(isset($_POST['pass-reset'])) { $var21= mysql_query("SELECT email FROM users") or die(mysql_error()); while($var22=mysql_fetch_assoc($var21)) { foreach($var22 as $var23) { if ($_POST['email']==$var23){ $outerror=1; echo "<p class=\"reset-f\">Please check your inbox for your password.</p>";} } } if($outerror!=1) echo "<p class=\"reset-f\">Invalid Email! Please enter correct email address.</p>"; } ?> I didn't add the html code here as the issue is with PHP. The current script can match the user entered email with emails in database and reply messages but I need to add the following functions: * It also needs to get password if it finds matching email address * And also send the password to the user entered email address Thanks in advance for your assistance.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.