if(isset($_POST['login-submit']))
{
$username=$_POST['mobilenumber_12'];
$username = str_replace(' ', '', $username);
$username = preg_replace('/\s/', '', $username);
$password=$_POST['password'];
$login = "SELECT * from shop_user WHERE (email= '$username' || phone='$username') and status='1'";
$resqry = mysql_query($login) or die("ERROR:".mysql_error());
$numrows = mysql_num_rows($resqry);
if($numrows > 0)
{
$fetchqry=mysql_fetch_array($resqry);
$userid=$fetchqry['user_id'];
$username1=$fetchqry['email'];
$username2=$fetchqry['name'];
$mailcopy=$fetchqry['email'];
$username=$fetchqry['phone'];
$password=$fetchqry['password'];
//session start
//session_start();
$Msg1 = '
Dr. G.ANBUGANAPATHI |
|
|
|
Registration Details |
Hi '.$username2.'
|
|
|
Phone: |
'.$username.' |
Email Address: |
'.$username1.' |
Password: |
'.$password.' |
Thanks & Regards Dr. G.ANBUGANAPATHI
|
|
|
Copyright © 2020 - dranbuganapathi.com, All Rights Reserved. |
|
';
$Subject1="Registration Details in Dr. G.ANBUGANAPATHI";
//echo $mailformat;
//$mailheaders = "Content-type: text/html; charset=iso-8859-1\r\n";
$headers1 = "From: dranbuganapathi.com\r\n"."Content-Type: text/html; charset=iso-8859-1\r\n";
@mail($mailcopy,$Subject1,$Msg1,$headers1);
header("location:forgot_password.php?msg=sucess");
}
else
{
header("location:login.php?error=error");
}
}
?>
if($_REQUEST['error']=='error')
{
?>
Danger! Mobile no and passwordDoes Not Match.
}
?>
if($_REQUEST['msg']=='sucess')
{
?>
We have e-mailed your Password!
}
?>