[PHP] How to Popup a Window Using PHP Code

2002-08-02 Thread Hakkan Lui

Dear all,

As the title state, is there any method to popup a window (like
window.open in Javascript), using PHP code?

Thanks for your help.


Regards,
Hakkan Lui



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




Re: [PHP] How to Popup a Window Using PHP Code

2002-08-02 Thread René Moonen

Hakkan Lui wrote:

Dear all,

As the title state, is there any method to popup a window (like
window.open in Javascript), using PHP code?

Thanks for your help.


Regards,
Hakkan Lui



  

Yep there is:

?php
  echo SCRIPT LANGUAGE='JavaScript'window.open();/SCRIPT
?

But I suppose it is not what you had in mind. ;-)

set mode=serious

You can do anything in PHP as long as your actions are on the server. 
Javascript runs on the client and PHP is not in control than. So if you 
need to open a new window you will need PHP to produce HTML code that 
does just that. That HTML can include Javascripts.

René



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