RE: [PHP] Mutiple header statements?

From: Date: Wed, 30 Oct 2002 16:19:02 +0000
Subject: RE: [PHP] Mutiple header statements?
Groups: php.general 
Request: Send a blank email to php-general+get-122040@lists.php.net to get a copy of this message
Not sure if this is what you're looking for, but a possible solution could be: <? if ($_POST['var'] == "this") $page = "script1"; if ($_POST['var'] == "that") $page = "script2"; header("Location: $page.php"); } ?>

« previous php.general (#122040) next »