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:[EMAIL PROTECTED]] 
Sent: Friday April 19, 2002 9:14 AM
To: [EMAIL PROTECTED]
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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to