if($condition == true){
Header ("Location: newpage.php");
exit;
}
-----Original Message-----
From: Lowell Allen [mailto:[EMAIL PROTECTED]
Sent: 03 April 2003 04:09 PM
To: PHP
Subject: Re: [PHP] Redirect
> From: "shaun" <[EMAIL PROTECTED]>
>
> How would one redirect a user to a different page if a certain condition
was
> met?
>
> i.e.
>
> if($condition == true){
> goTo newPage.php
> }
Redirects are done using the header() function. See the documentation at
<http://www.php.net/manual/en/function.header.php>.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php