You have 2 options:

a) Send a HTTP redirect header based on the condition

b) Conditionally include the contents of the page instead of actually
redirecting

-Srini
--
http://www.sriniram.com
http://symonds.net/~sriniram
----- Original Message -----
From: "Brad Wright" <[EMAIL PROTECTED]>
To: "PHP General List" <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 6:46 AM
Subject: [PHP] changing to a different file in browser


> Hi all,
> I know this is probably the most stupid question you'll see on this list
for
> a while, but anyway,
> In an 'if..else' statement, I want to (if a condition is met) change to a
> totally new php page in the browser window. I know this is simple (in fact
i
> had it working last night but have now forgotten how i did it).
>
> ie (no the following is NOT actual PHP....sheesh :)
> .
> If  a=1
> go to required_page.php
> else
> do nothing
>
> Thanks in advance,
> Brad
>
>
> --
> 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