Re: Mutiple header statements?

From: Date: Wed, 30 Oct 2002 16:27:10 +0000
Subject: Re: Mutiple header statements?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-122041@lists.php.net to get a copy of this message
<? if ($_POST['var'] == "this") { header("Location: scipt1.php"); exit;} if ($_POST['var'] == "that") { header(Location: script2.php"); exit; } ?> ----- Original Message ----- From: <ed@home.homes2see.com> To: <php-general@lists.php.net> 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

« previous php.general (#122041) next »