RE: [PHP] Mutiple header statements?

From: Date: Wed, 30 Oct 2002 13:14:59 +0000
Subject: RE: [PHP] Mutiple header statements?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-122054@lists.php.net to get a copy of this message
On Wed, 30 Oct 2002 Liam.Gibbs@dfait-maeci.gc.ca wrote: > 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"); } > ?> This could be an option if neither of the if's matched it could continue with additional scripting below these conditions without getting sent a header. Ed

« previous php.general (#122054) next »