SV: [PHP] Cant add new Header

From: Date: Mon, 07 May 2001 10:37:22 +0000
Subject: SV: [PHP] Cant add new Header
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-51712@lists.php.net to get a copy of this message
Make sure you're not sending any output to the browser, not even the body tag, before you send the header(); -----Ursprungligt meddelande----- Från: elias [mailto:elias_bachaalany@yahoo.com] Skickat: den 7 maj 2001 22:43 Till: php-general@lists.php.net Ämne: Re: [PHP] Cant add new Header you can always redirect via JavaScript: <script> location = "newlocation.htm" </script> <? echo "Redirecting please wait...."; exit(); ?> -elias http://www.eassoft.cjb.net ""Andy"" <andy@w3media.com> wrote in message news:9cuqlv$dgt$1@toye.p.sourceforge.net... > Hello, > > I am a newi. > > 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 > -- 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

« previous php.general (#51712) next »