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.

Sorry, I'm not understanding what you're trying to do. It looks like you're checking to see if an email is the same as a staff's email address, and if it is, don't use your own email?