PHP if not statements
问题 This may be the way my server is set up, but I'm banging my head against the wall. I'm trying to say that if $action has no value or has a value that is not "add" or "delete" then have an error, else keep running the script. However, I get an error no matter what $action is. $action = $_GET['a']; if((!isset($action)) || ($action != "add" || $action != "delete")){ //header("location:index.php"); echo "error <br>"; } $action is being set properly and if run something like if($action =="add") it