Re: How to Popup a Window Using PHP Code

From: Date: Fri, 02 Aug 2002 08:00:05 +0000
Subject: Re: How to Popup a Window Using PHP Code
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-110790@lists.php.net to get a copy of this message
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é

« previous php.general (#110790) next »