Mutiple header statements?

From: Date: Wed, 30 Oct 2002 12:25:30 +0000
Subject: Mutiple header statements?
Groups: php.general 
Request: Send a blank email to php-general+get-122039@lists.php.net to get a copy of this message
Why doesn't this work? <? if ($_POST['var'] == "this") { header("Location: scipt1.php"); } if ($_POST['var'] == "that") { header(Location: script2.php"); } ?> If I select "that" from the form submitting the value to "var" I get a header already sent error. There is nothing else above these statments in my script. Thanks, Ed

« previous php.general (#122039) next »