include('includes/topnav.php')?> | |
if (isset($test))
{
require('includes/dbconn.php');
$query="Select password from vuser where mailid='$mailid'";
$result=mysql_query($query);
if (mysql_num_rows($result)<1)
{
echo 'Mailid does not exist';
}
else
{
$row=mysql_fetch_row($result);
if ($row[0]==$cpasswd)
{
$query2="Update vuser set password='$npasswd' where mailid='$mailid'";
$t=mysql_query($query2);
if ($t==1)
{
echo 'Password Changed';
}
else
{
echo 'Unable to change password';
}
}
else
{
echo 'Invalid password';
}
}
}
else
{
?>
Please enter the email address you registered with to obtain your password.
} ?> |