Re: using header ();
| From: | Jason Wong | Date: | Sat, 11 May 2002 11:20:32 +0000 |
| Subject: | Re: using header (); | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97091@lists.php.net to get a copy of this message | ||
On Saturday 11 May 2002 19:10, baldey_uk wrote:
> Yes i have tested it thats why i am asking, as it is not working either way
> for me, it just stays on the same screen but blanks the previous output to
> the page.
>
> Baldey_uk
>
> -----Original Message-----
> From: Nick Wilson [mailto:nick@explodingnet.com]
> Sent: 11 May 2002 12:07
> To: Php-General
> Subject: Re: [PHP] using header ();
>
>
>
> * and then baldey_uk declared....
>
> > Can someone tell me how to use the header function? Can i use it with
> > relative URLs for example:
> >
> > header ("Location:index2.php");
>
> Have you tested it?
> Come on, took me all of a minute and a half to try it out :-)
You need a space after the colon:
header ("Location: index2.php");
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Kennedy's Market Theorem:
Given enough inside information and unlimited credit,
you've got to go broke.
*/