query("select * from n_users where user_name='".$user_name."' OR `user_email_address`='".$user_name."'"); $userList=$db->fetchArray(); if($db->numRows() > 0 ){ if($userList["user_status"]=="0"){ $mess="Your account will be not active yet."; $registration = false; }else{ $password=randomChars(); $query_string = "UPDATE n_users set user_password ='".$password."' where user_id='".$userList["user_id"]."'"; if(mysql_query($query_string)){ $registration = true; $userMailMess="Dear ".$userList['user_first_name'].","."\n\r\n\r"; $userMailMess.="Your account information is:"."\n\r"; $userMailMess.="Sign in Email Address: ".$userList["user_email_address"]."\n\r"; $userMailMess.="Password: ".$password."\n\r"; require("phpmailer/class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsMail(); $mail->IsHTML(true); $mail->AddReplyTo("ndri.grads@gmail.com","NDRI Administrator"); $mail->AddAddress($userList["user_email_address"]); $mail->Subject = "NDRIGrads.com : User Password Retrieve"; $mail->Body = $userMailMess; $mail->Send(); /* if($mail->Send()){ die("send"); }else{ die("no"); }*/ mail($userList["user_email_address"],"User Password Retrive",$userMailMess,null); //Common::goToURL("index.php"); }else{ $mess="An error occured, Please try again later."; $registration = false; } } }else{ $mess="User name / Email is not exist! Please enter the valid user name."; } } ?>

Forgot Password


Notice: Undefined variable: registration in E:\HostingSpaces\w3mtechnoz\ndrigrads.com\wwwroot\forgot_password.php on line 66

Notice: Undefined variable: mess in E:\HostingSpaces\w3mtechnoz\ndrigrads.com\wwwroot\forgot_password.php on line 80
 
Please enter your username or email and password will be send on your email.
 
*
 
Notice: Undefined variable: mess in E:\HostingSpaces\w3mtechnoz\ndrigrads.com\wwwroot\forgot_password.php on line 81
 
© All rights reserved for ndrigrads.com Design & Developed by W3M Technoz