Output this to a new file each time and then use a blind page refresh
via
$output = "
<script>
function openpopup(){
var popurl=\"$launch\"
winpops=window.open(popurl,\"\",\"width=400,height=338,toolbar,location,
directories,status,scrollbars,menubar,resizable,\")
}
openpopup()
</script>
";
if($file=fopen($pop.htm, "w")) { //open file for writing
fwrite($file, $output); //write to file
}
And then do this:
Header("Location:pop.htm");
HTH!
Robert
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The marvels of modern technology include the 5� soda can which when
discarded will last for ever and a $35,000 car which when meticulously
cared for will rust out in 2 - 3 years.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----Original Message-----
From: bernard [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 11:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: how to open a webpage
Hi,
Thanks for the suggestions !
Problem is solved sofar.
But how can I open the link in a new window, I tried (with my limited
php
knowlegde) a lot of things, but i'ts not working.... :-(
Bernard
"Bernard" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
> I am new to php and doing reasonable well (ok, copying other code and
> learning ;-)
>
> I have a field with an URL
> The value of this in a variable $launch.
>
> How can I open this URL automatically ??
>
> TIA!!
> Bernard
> Antwerp, Belgium
--
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