if ($varTwo == $varOne) {
        header('Location: http://www.location.com/page.html');
} 
else {
        echo "You stay right where you are!";
}

Tyler

> -----Original Message-----
> From: Jamie Saunders [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 06, 2001 5:21 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] URL redirection
> 
> 
> 
> Hi,
> 
> Is there a PHP function that will redirect the current page to 
> another url?
> 
> e.g.
> 
>          if ($varTwo == $varOne) {
> 
>                  URL redirection code
> 
>                  } else {
> 
>                          echo "You stay right where you are!";
> }
> 
> Thanks.
> 
> 
> Jamie Saunders
> Mail: [EMAIL PROTECTED]
> Web: http://jamie-s.co.uk
> 
> 
> -- 
> 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