Re: AW: [PHP-GENERAL] go to another file
| From: | Lez Lytollis | Date: | Wed, 07 Jun 2000 16:07:19 +0000 |
| Subject: | Re: AW: [PHP-GENERAL] go to another file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-1227@lists.php.net to get a copy of this message | ||
You can use
HEADER("Location: test.php3");
exit;
in place of your include, but only if no HTML has been generated before it.
Lez
---------------------------------------------------
>
> Hello!
>
> I can't find a function for the following case.
>
> If the if-clause in the file start.php3 is true, I want to go to the
> file test.php3.
>
> But I don't want to include it!
>
> It should be startet like I would have followed a hyperlink.
>
> // file start.php3
> if ( $a == 1 )
> {
> include ("test.php3"); // -> link directly !
> }
>
> Thank you so much,
>
> Thorsten