if(!isset($_GET['set']) && (($_GET['set'] != 'on') || ($_GET['set'] != 'off'))){
header('Location: http://google.com');
exit;
}
What I want to check is if set has not set and value is not on or off. Is this right or is there any other way?
No, all you need is this: