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
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
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
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).
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
5 matches
Mail list logo