RE: [PHP] Can not send new Header
| From: | Altunergil, Oktay | Date: | Fri, 04 May 2001 18:06:37 +0000 |
| Subject: | RE: [PHP] Can not send new Header | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-51457@lists.php.net to get a copy of this message | ||
You have to send the HEADER before anything is sent to the browser. If you
have sent html tags like <HTML>,<BODY> etc or anything else the browser will
parse, subsequent calls to HEADER stuff will not work. (that is unless you
do output buffering of some sort)
oktay
-----Original Message-----
From: Andy [mailto:andy@w3media.com]
Sent: Friday, May 04, 2001 2:04 PM
To: php-general@lists.php.net
Subject: [PHP] Can not send new Header
Hello,
I am a newbi.
Currently I try to relocate the viewed page after entering successful a
form.
I tryed it like that:
HEADER("Location:http://$HTTP_HOST/admin/admin.php?content=upload");
But I did get an errormessage which said that I already have sent a header
( which was a body tag).
Can anybody please help me in that case??
Thanx
Andy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net