Please enter your email address and we will send you your username/password


execute("SELECT * FROM tbluser WHERE emailID='$txtEmail'"); $reccount=$dbconn->recordCount; if($reccount==0){ echo "Sorry, your username/password have not been registered as a member in our database.

"; echo "Click here to go back to the login screen"; }else{ // He exists, so send an email to him with username/password details $dbconn->execute("SELECT password FROM tbluser WHERE emailID='$txtEmail'"); $passwd=$dbconn->Fields[0]; $html=""; $html=$html.""; $html=$html."Hello,

You had requested for your WorldImages username/password details. They are:

"; $html=$html."Username: ".$txtEmail."
"; $html=$html."Password: ".$passwd."

"; $html=$html."You can login by visiting the WorldImages member panel at http://www.worldimages.com/member/

"; $html=$html."Regards,
Webmaster"; // We've built the mail body, now we create a mailer object and send the mail across $mail = new phpmailer(); $mail->From="webmaster@worldimages.com"; $mail->FromName="WorldImages Webmaster"; $mail->Subject="Forgotten Password Reminder"; $mail->IsSMTP(); $mail->SMTPAuth=false; $mail->IsHTML(true); $mail->Body = $html; $mail->AddAddress($txtEmail, $txtEmail); if(!$mail->Send()) echo "There was an error sending the email. Please try later. We are sorry for any inconvenience caused.

"; else{ ?> We have sent your username and password by email. Please check your email in a few minutes.

Click here to go back to the login screen