exists($query)): $sql->queryrow($query); $passwd=substr($sql->data["password"],5,8); $email=$sql->data["email"]; $query="update members set password=md5('$passwd') where member_id='$member_id'"; $sql->query($query); $subject="MyLifeCard.com Login Information"; $message="Here is the information you requested:
member id=$member_id
password=$passwd
"; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; /* additional headers */ $headers .= "From: MyLifeCard Support \r\n"; mail($email,$subject,$message,$headers); $output="Your password has been reset and emailed to $email!"; else: $output="The member id supplied could not be found!"; endif; endif; ?>


Please enter your member number and your password will be reset and emailed to the address on file.