This should be fairly simple, but no there are no examples that I can find in my PHP book.
I am wanting to use an if statement to query whether 2 variables are correct before executing code.
This is the code I am using:
if (($userlevel == "user") | ($action == "apply")) {
header("Location: http://localhost/user/process.php?user=$user_name");
exit;