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 always redirect via JavaScript:


<script>
location = "newlocation.htm"
</script>

<?
  echo "Redirecting please wait....";
exit();
?>

-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 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]



-- 
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]

Reply via email to