@ob_start();
session_start();
include_once 'include/connect.php';
include_once 'include/Form.php';
?>
$curform=new Html_form('forgot.php?actn=Login','post','form1','','','chk_all','','');
$curform->start();
print "
";
print "
";
print "";
//
|
";
?>
if($_GET['actn']=="Login")
{
/* form mail */
$q=mysql_fetch_object(mysql_query("SELECT * FROM user WHERE email='".$_POST['email_id']."' "));
if($q!='')
{
$to=$email_id;
$from="webmaster@frlht.org.in";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
//$headers .= "From: ".$from."\r\n";
$headers .= "From: WebMaster, FRLHT \r\n";
$headers .= "Reply-To: info@frlht.org.in\r\n";
$body="Dear $q->fname $q->lname,
";
$body.="Your login information is as follows:
";
$body.="Login id: ".$_POST['email_id']."
";
$body.="Password: $q->pass
";
$body.="
Please LOGIN to proceed further";
$body.="
Regards,
";
$body.="FRLHT Informatics Team
";
//mail ( string to, string subject, string message [, string additional_headers [, string additional_parameters]])
@mail($to,'Your Login Details',$body,$headers);
/* end mail */
print "
".$body;
print " |
";
}
else
{
print " |
";
}
}
else
{
print "Enter your Email address, we shall restore your password via email.
";
print " |
Email Address";
print " | ";
$curform->displaytext("email_id",'',35,50,0);
print "
|
";
$curform->displaySubmit('Submit','submit');
}
print " |
";
$curform->end();
?>