Hello all,
I have a rather simple IF statement with an OR in the code, however I do not think it is working, as when processing the link, it sends me to the wrong location, which doesn’t follow the code.
[code=php]
if($Type === “Oil” or “Market”){
header(‘Location: http://www.test.com/payment.php’);
}
else{
header(‘Location: http://www.test.com/payment2.php’);
}
I know the variable
[code=php]$Type
is being called, because upon checking it by echo’ing it out, it provided what is in the DB, however it didn’t work as I intended. I had
[code=php]$Type = “Both”;
meaning it should have sent me to payment2.php however it sent me to payment.php.
Does anyone know what could be the issue?