RE: [PHP] URL redirection
| From: | Tyler Longren | Date: | Sun, 06 May 2001 22:27:28 +0000 |
| Subject: | RE: [PHP] URL redirection | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-51674@lists.php.net to get a copy of this message | ||
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:webprogramming@jamie-s.co.uk]
> Sent: Sunday, May 06, 2001 5:21 PM
> To: php-general@lists.php.net
> 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: webprogramming@jamie-s.co.uk
> Web: http://jamie-s.co.uk
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>