Posted by C. (http://symcbean.blogspot.com/) on 10/04/07 12:01
On 4 Oct, 07:51, "Rik Wasmus" <luiheidsgoe...@hotmail.com> wrote:
> On Thu, 04 Oct 2007 08:45:30 +0200, cel...@gmail.com <cel...@gmail.com>
> wrote:
>
> > just write
> > header ('location: index.php');
> > instead of
> > header = ('location: index.php');
>
> > header is a function not a variable. dont get confused with the
> > $headers variable you used. They are tottally different.
>
> Actually it should be:
> header ('Location:http://www.example.com/index.php');
>
> Allthough by the grace of UA's they normally use the current domain, this
> is not in the specs.
> --
> Rik Wasmus
Actually it should be a 307 redirect (which needs to be explicitly
set)- not a 302 (default for Location: header).
C.
[Back to original message]
|