<?

if ($_POST['var'] == "this") {
header("Location: scipt1.php");  exit;}

if ($_POST['var'] == "that") {
header(Location: script2.php"); exit; }

?>


----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 6:25 AM
Subject: [PHP] Mutiple header statements?



Why doesn't this work?



 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




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to