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:[EMAIL PROTECTED]]
Sent: Friday, May 04, 2001 2:04 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]