SV: [PHP] Cant add new Header

2001-05-07 Thread Mattias Segerdahl
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:[EMAIL PROTECTED]] Skickat: den 7 maj 2001 22:43 Till: [EMAIL PROTECTED] Ämne: Re: [PHP] Cant add new Header you can a

Re: [PHP] Cant add new Header

2001-05-07 Thread elias
you can always redirect via JavaScript: location = "newlocation.htm" -elias http://www.eassoft.cjb.net ""Andy"" <[EMAIL PROTECTED]> wrote in message 9cuqlv$dgt$[EMAIL PROTECTED]">news:9cuqlv$dgt$[EMAIL PROTECTED]... > Hello, > > I am a newi. > > Currently I try to relocate the viewed page

Re: [PHP] Cant add new Header

2001-05-04 Thread Miles Thompson
Right - you can't send anything, even a blank line, before a header. You will have to do some restructuring/rearrangement of your code Miles At 11:00 AM 5/4/01 -0700, Andy wrote: >Hello, > >I am a newi. > >Currently I try to relocate the viewed page after entering successful a >form. > >I tryed

Re: [PHP] Cant add new Header

2001-05-04 Thread Dan Lowe
See ob_start(). http://php.net/manual/en/function.ob-start.php Previously, Andy said: > > 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).

[PHP] Cant add new Header

2001-05-04 Thread Andy
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