MOON
Server: Apache
System: Linux smtp.modiva.org 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64
User: rtbrisc (1005)
PHP: 8.1.34
Disabled: NONE
Upload Files
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");
		}
	}
}
?>