if ($x == 5)
header('Location: http://blah.com/blah');
This what you were looking for?
Also make sure this is sent before any other output
Andrew
----- Original Message -----
From: "DougD" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 04, 2003 6:32 AM
Subject: [PHP] auto 'jump' to link
> I've seen this somewhere (or I've gone crazy), but a function in PHP that
> automatically forwards you to another web page. If want to do an 'if x=5
> then jump to this other page on the site or an external site'.
>
> Could anyone help me out here?
>
> Thanks very much.
>
> -Doug
>
> --
> 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