Re: headers already sent
| From: | David Robley | Date: | Thu, 12 Sep 2002 11:42:10 +0000 |
| Subject: | Re: headers already sent | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116134@lists.php.net to get a copy of this message | ||
In article <3D807C85.9010600@inwind.it>, gianmichele_79@inwind.it says...
> I'm doing a little form:
> In the first page i have the form to insert datas,then redirect the
> control to a script that check if the filds are correct.If they are
> correct redirect the output to a prospect else to the first page.The
> problem is that it gives an error like this
> "Warning: Cannot send session cache limiter - headers already sent "
> but I wrote "session_start()" in the highest part of all the scripts.
> I redirect the output with "header("Location:
> http://..") is it correct
> or there is an other way ?
>
> If i don't write "session_start()" in the html's page the variables dont
> appear in the fields(if i insert before,naturally).
>
> Someone help me please?
>
> Tanks Gian Michele
Check that you don't have _any_ whitespace before the <?php ?> tags, and
of course don't send any other output before the header function.
--
David Robley
Temporary Kiwi!
Quod subigo farinam