Header("Location:$launch"); die;
Make sure that nothing is outputted before this is called though. The variable $launch should also be an absolute URL.
Neil
Richard Davey wrote:
*********************************************** This Email Has Been Virus Swept ***********************************************
Hello bernard,
Monday, January 12, 2004, 1:47:39 PM, you wrote:
b> I have a field with an URL b> The value of this in a variable $launch.
b> How can I open this URL automatically ??
PHP itself cannot open a web page, it's a server-side language and doesn't have any control over the client like that.
What it can do however is echo out the HTML required to make it happen. Either some JavaScript, or a link with the TARGET attribute set to be $launch.
-- ---------------------- www.curvedvision.com ----------------------
This communication is confidential to the intended recipient(s). If you are not that person you are not permitted to make use of the information and you are requested to notify the sender immediately of its receipt then destroy the copy in your possession. Any views or opinions expressed are those of the originator and may not represent those of Advanced System Architectures Ltd.
*** This Email Has Been Virus Checked ***
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php