I am running an application that will check to see if a variable equals x OR y, but nothing else. If the variable does not equal x or y it will redirect the user to antoher page.
I thought this would be simple, but it is turning out to be difficult and a pain.
Here is the code I have, and it basically allows everyone in, regardless of what the variable is set to-
session_start();
IF ($auth_type !="1" XOR $auth_type !="4") {
header("Location:http://www.mysite.com/ACCESS/denied.htm");
exit; }
I have tried everything that I can think of and I know it something simple and I hope one of you will help me understand this a bit better with these operators, since I am a beginner.