RE: [PHP] Re: how to open a webpage
| From: | Robert Sossomon | Date: | Mon, 12 Jan 2004 16:59:36 +0000 |
| Subject: | RE: [PHP] Re: how to open a webpage | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174341@lists.php.net to get a copy of this message | ||
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:iis@pandora.be]
Sent: Monday, January 12, 2004 11:43 AM
To: php-general@lists.php.net
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" <iis@pandora.be> wrote in message
news:20040112134729.43153.qmail@pb1.pair.com...
> 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