Re: header - error all headers have been sent.

From: Date: Wed, 11 Oct 2000 15:39:25 +0000
Subject: Re: header - error all headers have been sent.
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-3161@lists.php.net to get a copy of this message
When I attemped to use the header function, php returned an error saying that all the headers had already been sent. The redirect must only occur after the form has been submitted. Should I use another function?
No, you just need to put the header() function in a different place: before any output. - Julie +------------------------------------------------+
| Julie Meloni (jcm@i2ii.com)                    |
| Tech. Director, i2i Interactive (www.i2ii.com) |
|                                                |
|      "PHP Essentials" & "PHP Fast & Easy"      |
|            http://www.thickbook.com/           |
+------------------------------------------------+

« previous php.windows (#3161) next »