GOOGLE
<?php include('dbcon.php');
if(isset($_POST['forgetpss'])){
extract($_POST);
$sql = mysql_query("SELECT * FROM `registration` WHERE `email_id`='".$email."'");
$selsql = mysql_fetch_array($sql);
if($selsql['email_id']==$email){
$to=$email;
$subject="ACP Wardha Password";
// From
$header="from: ACP Wardha <acp@acpwardha.org>";
// Your message
$message="Username :- ".$selsql['email_id']."\r\n";
$message.="password :- ".$selsql['pasword_hint']." \r\n";
// send email
$sentmail = mail($to,$subject,$message,$header);
echo "<script>
alert('username and password send on your registerd mail ID please check and login');
window.location.href='loginpage.php';
</script>";
}else{
echo "<script>
alert('Email Id not Match');
window.location.href='loginpage.php';
</script>";
}
}?>
Copyright © 1945 -