I think this is what you'll want. <<switch (condition1) { case "1"; header("Location: page1.php"); case "2"; header("Location: page2.php"); }>>
You need to be careful that you haven't output anything beforehand or you'll get an error message. Even having a blank line before the <?PHP tag will screw you up. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php