if(!isset($_SESSION["TIP"])){
header("location:../index.php?msg=1");
}else if(isset($_SESSION["TIP"])){
if($_SESSION["TIP"]!="Normal"){
header("location:../index.php?msg=3");
}else if ($_SESSION["TIP"]!="Gold") {
header("location:../index.php?msg=3");
}
}
I have this code to validate if the user who enters the program has the corresponding permissions, the problem is that my variable $_SESSION["TIP"]
if it is equal to "Normal" but I take it as if it were not.
This only happens when I put the else if
or about ||
in the condition, does anyone know where my error is?