"; $status= "NOTOK";} echo "

"; if($status=="OK"){ $query="SELECT email,userid,password FROM plus_signup WHERE plus_signup.email = '$email'"; $st=mysql_query($query); $recs=mysql_num_rows($st); $row=mysql_fetch_object($st); $em=$row->email;// email is stored to a variable if ($recs == 0) { echo "
No Password
Sorry Your address is not there in our database . You can signup and login to use our site.

Sign UP
"; exit;} $headers4="support@necst.mit.edu"; ///// Change this address within quotes to your address /// $headers.="Reply-to: $headers4\n"; $headers .= "From: $headers4\n"; $headers .= "Errors-to: $headers4\n"; //$headers = "Content-Type: text/html; charset=iso-8859-1\n".$headers;// for html mail un-comment this line if(mail("$em","Your Request for login details","This is in response to your request for login detailst at site_name \n \nLogin ID: $row->userid \n Password: $row->password \n\n Thank You \n \n siteadmin","$headers")){echo "
Your password is posted to your emil address . Please check your inbox and junk mail folder.
";} else{ echo "
There is some system problem in sending login details to your address. Please contact site-admin.

";} } else {echo "

";} ?>