Re: PHP jump to other page
| From: | Penthexquadium | Date: | Thu, 05 Oct 2006 01:16:17 +0000 |
| Subject: | Re: PHP jump to other page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-242627@lists.php.net to get a copy of this message | ||
On Thu, 5 Oct 2006 01:17:41 +0700, Groundhog <linuxmurah@gmail.com> wrote:
> how can I jump to another page after IF..ELSE statement, for example:
>
> IF (statement == TRUE)
> { stay on this page, index.php }
> ELSE { jump to index2.php}
>
> --
> Come and Visit My Blog
> http://ubuntu-ku.blogspot.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
if (!statement) {
header('Location: index2.php');
exit;
}
// other codes...