$email = $_REQUEST['email']; if ($email ==! "") { include("conn.php"); $query = "SELECT fname, member_id, password FROM member where email = '$email'"; $result = mysql_db_query($db, $query); $records = mysql_num_rows($result); if ($records == 0) { $msg = "*Email address not found, please try again.*"; $email = ""; } if ($result) { while ($r = mysql_fetch_array($result)) { $fname = $r["fname"]; $m_id = $r["member_id"]; $pwd = $r["password"]; $mailsubj = "Your WonderList Credentials"; $mailbody = "Hi $fname,\n\nYour Wonderlist credentials are below.\n\nMember ID: $m_id\nPassword: $pwd\n\nWe look forward to seeing you on http://www.wonderlist.net soon!"; mail ($email, $mailsubj, $mailbody); $msg = "*Your WonderList credentials have been emailed to you.*"; } } } ?>
Return to Main
To have your Member ID and password emailed to you, enter the email address associated with your WonderList below and click Submit.