Re: Mutiple header statements?
| From: | 1LT John W. Holmes | Date: | Wed, 30 Oct 2002 17:14:47 +0000 |
| Subject: | Re: Mutiple header statements? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-122055@lists.php.net to get a copy of this message | ||
> On Wed, 30 Oct 2002, Rick Emery wrote:
>
> > <?
> >
> > if ($_POST['var'] == "this") {
> > header("Location: scipt1.php"); exit;}
> >
> > if ($_POST['var'] == "that") {
> > header(Location: script2.php"); exit; }
>
> Nope, I still get a header already sent error if I choose "that."
WHAT IS THE ERROR?? It tells you _exactly_ in the header error message where
the output was started. Look on or near that line because it caused some
output to the browser and now headers cannot be sent.
---John Holmes..