Re: page redirect question
| From: | Minuk Choi | Date: | Tue, 09 Nov 2004 17:14:25 +0000 |
| Subject: | Re: page redirect question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201629@lists.php.net to get a copy of this message | ||
Victor, try this.
at the TOP of your HTML, put
<?PHP
ob_start();
?>
then you can have all your regular HTML/PHP/JAVASCRIPT/ETC code, and somewhere(in the middle, in the end), you can call
<?PHP
header('location: '.$URL);
?>
where $URL is a variable that contains a URL and it will work.
?>
----- Original Message ----- From: "Victor C." <cao117@hotmail.com>
To: <php-general@lists.php.net>
Sent: Tuesday, November 09, 2004 11:07 AM
Subject: [PHP] page redirect question
Hi, Is there anyway to redirect php page other than using HEADER("LOCATION:URL") ? Header can only be called if nothing is written to HTML... Is there anyway around it? Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php