RE: [PHP] how to popup a new browser window from php
| From: | Matt Friedman | Date: | Fri, 19 Apr 2002 13:28:32 +0000 |
| Subject: | RE: [PHP] how to popup a new browser window from php | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-93688@lists.php.net to get a copy of this message | ||
No.
You want a client side browser popup.
PHP runs on the server. PHP does not run in a browser.
Javascript runs on the browser.
You need to use Javascript.
Matt Friedman
Web Applications Developer
-----Original Message-----
From: Jason Wong [mailto:php-general@gremlins.com.hk]
Sent: Friday April 19, 2002 9:14 AM
To: php-general@lists.php.net
Subject: Re: [PHP] how to popup a new browser window from php
On Friday 19 April 2002 20:48, Brian McGarvie wrote:
> add this to the <head> section;
>
> <script language="JavaScript">
> function popupcontent(urll)
>
> {
>
>
>
window.open(urll,'popup','toolbar=no,location=no,directories=no,status=n
>
o,menubar=no,resizable=no,copyhistory=no,scrollbars=yes,width=400,height
> =250');
>
> }
>
> //-->
> </SCRIPT>
>
> then use the following to open a window however ya want it to appear;
>
> <a
>
href=\"javascript:popupcontent('announcements.php?action=view&thisone=$i
> d')\"><b>$title</b></a>
This looks suspiciously like javascript.
> works nicely :)
I'm sure it does. Now do it again *without* javascript :)
> >> Is there any easy way to popup a new browser from PHP
> >> without using any Javascript?
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
The mome rath isn't born that could outgrabe me.
-- Nicol Williamson
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php