RE: [PHP] Mutiple header statements?
| From: | John W. Holmes | Date: | Wed, 30 Oct 2002 17:45:34 +0000 |
| Subject: | RE: [PHP] Mutiple header statements? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-122068@lists.php.net to get a copy of this message | ||
See? If you had just started with your actual code and the actual error,
we'd of solved this by now.
---John Holmes...
> -----Original Message-----
> From: Marek Kilimajer [mailto:kilimajer@webglobe.sk]
> Sent: Wednesday, October 30, 2002 12:37 PM
> To: PHP
> Subject: Re: [PHP] Mutiple header statements?
>
> You have an empty line there, get rid of the
> ?>
>
> <?
> pair
>
> ed@home.homes2see.com wrote:
>
> >
> >
> >>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..
> >>
> >>
> >
> >
> >Here's the code:
> >
> ><? if ($_POST['county'] == "Lots") {
> > header("Location: lotland1.php"); exit; } ?>
> >
> ><? if ($_POST['county'] == "Land and Acreage") {
> > header("Location: lotland2.php"); exit; } ?>
> >
> ><font face="Arial,Helvetica" size="+1" color="red">
> >
> >and on from here........................
> >
> >Here's the error:
> >
> >Warning: Cannot add header information - headers already sent by
> >(output started at script.php:4) in script.php on line 5
> >
> >Ed
> >
> >
> >
> >
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php