Re: [HELP] redirect browser & pass variable !
| From: | Jason Wong | Date: | Mon, 22 Apr 2002 04:55:54 +0000 |
| Subject: | Re: [HELP] redirect browser & pass variable ! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-93937@lists.php.net to get a copy of this message | ||
On Monday 22 April 2002 10:46, Joe wrote:
> I am using header function to redirect browser.
>
> { header("Location: http://www.XXX.edu/index.php");
> exit;}
>
> Although it can redirect the browser but variable had not pass to next
> page.
>
> So can anyone teach me how to pass variable and redirect browser at same
> time?
The easiest way is to pass the variables along with the url:
header("Location: http://www.XXX.edu/index.php?var1=doo&var2=dah"
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
May you have many beautiful and obedient daughters.
*/