Yes, but your syntax is off. You need to have your semicolon at the end of the statement and then the closing bracket for the if and else blocks...and this is a little bit nicer to read
PHP Code:
if($a >= 3 && $a <= 4) { header("Location: pagea.php"); } else { header("Location: pageb.php"); }
__________________
The worst things in life allow us to appreciate the best things
virtual kudos (a.k.a. talkupation) always welcome where deserved.
|