Hello, what I'm trying to do is to compare the variable $value to all the values inside the array $valid.
$value = "Z";
$valid = array(A, B, C);
#--------------------------- If the $value is not inside the $valid, error
if ($value != "$valid") {header("Location: error.php");}
my code is not working... 😕