File: /home/rtbrisc/public_html/admin/account/server/password.php
<?php
session_start();
require_once('db.php');
if(isset($_POST)) {
//Escape Special Characters In String First
$Email = mysqli_real_escape_string($conn, $_POST['txtEmail']);
if(empty($Email)){
$_SESSION['fog_err'] = "Please Enter Your Email";
header("Location:../forgot.php");
}else{
$check = mysqli_query($conn, "SELECT * FROM tblcustomer WHERE Email ='$Email'");
if($check_row = mysqli_fetch_assoc($check)){
//Send Mail
header("Location: password/?email=". $Email);
}else{
//Don't Send
$_SESSION['fog_err'] = "The email you supplied doesn't exist with us, Please check again";
header("Location: ../forgot.php");
}
}
}
?>