Re: Sending user to another page ?
Cyrus D. wrote:
> Hi guys,
>
> I want to do something simple, here is the code:
>
> <?php
>
> if($ageCheck)
> // goto mainpage.html
> else
> // goto under21.html
>
>>
>
> What is the best way to do that ? I looked at header() but I'm not
> sure if that's the best way. Thanks.
>
> Take care,
> Cyrus
Any reason that you can't do:
<?php
if( $ageCheck )
{
include( 'mainpage.html' );
}
else
{
include( 'under21.html' );
}
?>
|