Hi,
Is there a PHP script that doesn't allow the approver to be the same as the login e-mail?
$checkEmail = test_input($_POST["Approved_by_Email"]);
if (filter_var($checkEmail == session('session_staff_email'))) {
alert("Please do not use your e-mail as the approver.");
return false;
}
I tried to solve the problem, but it's so difficult to do. Here is the code that I'm trying to do.
"Approved_by_Email" is the text box.