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@xxxxxxxxxxx>
To: <php-general@xxxxxxxxxxxxx>
Sent: Tuesday, November 09, 2004 11:07 AM
Subject: 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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php