There is no registered user with username $uname in our database.
Try again.
"; exit; } $to = $a1[job_seeker_email]; $subject = "Your username/password for $site_name"; $message = "Hello,\n here is your login information for $site_name\n\nUsername: $_POST[uname]\nPassword: $NP "; $from = "From: $_SERVER[HTTP_HOST] <$aset[ContactEmail]>"; mail($to, $subject, $message, $from); echo "


Your login information was sent to $to
"; } elseif(isset($_POST["fm"])) { $q2 = "select uname, upass from job_seeker_info where job_seeker_email = \"$_POST[SEmail]\""; $r2 = mysql_query($q2) or die(mysql_error()); $a2 = mysql_fetch_array($r2); if(empty($a2)) { echo "


There is no registered user with email $SEmail at our database.
Try again.
"; exit; } //=============================================================================================================== //Create a new password $Char = array ("0","1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p", "q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P", "Q","R","S","T","U","V","W","X","Y","Z"); $NewPassword = ""; for ($x=0;$x<5;$x++) { $p = rand(0,61); $NewPassword .= $Char[$p]; } //echo "you new password is $NewPassword.

"; // Write new password in the database $EPass = md5($NewPassword); $strSQL = "UPDATE job_seeker_info SET upass ='$EPass' WHERE `job_seeker_email` = '" . $_POST['SEmail'] . "'; "; $Result = mysql_query($strSQL); //echo "u r at $domain
"; //=============================================================================================================== if ($domain == "yourmilitary") $strDomain = $_SERVER[HTTP_HOST] . "/spouse"; else $strDomain = $_SERVER[HTTP_HOST]; $strDomain = "yourmilitaryjobs.com"; $Msg = ' New Page 1

Your username/password for ' . $site_name . '
Hello,
Here is your NEW login information for ' . $site_name . '

Username: ' . $a2[uname] . '
Password: ' . $NewPassword . '

You may click here to log in with this information and change your password as you wish.

If clicking the above link does not work, you may copy and paste the following link on your browser\'s address bar.

http://' . $strDomain . '/jobseekers/editinfo.php

 

'; /* $to = $_POST[SEmail]; $subject = "Your username/password for $site_name"; $message = "Hello,\nhere is your NEW login information for $site_name\n\nUsername: $a2[uname]\nPassword: $NewPassword\n "; $message .= "You may log in with this information using the link below, and change your password as you wish.\n"; */ $to = $_POST[SEmail]; $subject = "Your username/password for $site_name"; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: $_SERVER[HTTP_HOST] <$aset[ContactEmail]>\r\n" . "Reply-To: $_SERVER[HTTP_HOST] <$aset[ContactEmail]>\r\n"; @mail($to , $subject , $Msg, $headers); echo "


Your login information was sent to $to
"; } else { ?>

Please enter the email you used during registration. In a few minutes you will receive your login information at that email address.

 

Email: