RE: [PHP-WIN] HTML/PHP/Javascript

From: Date: Thu, 10 May 2001 01:32:12 +0000
Subject: RE: [PHP-WIN] HTML/PHP/Javascript
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-7428@lists.php.net to get a copy of this message
Wouldn't it be simpler to have your PHP function in a discrete script file and call: <a href="javascript:void(0)" onClick="NewWindow('myscript.php'); return false"></a> ignatius -----Original Message----- From: Bob Sears [mailto:rsears@onet.net] Sent: Thursday, 10 May 2001 10:45 To: php-windows@lists.php.net Subject: [PHP-WIN] HTML/PHP/Javascript Put on your thinking caps. I need to open a popup window and display its contents. Since PHP doesn't have that functionality, I am resorting to Javascript. The two will be used in the following manner: <? function outputOrderToFile(){ The PHP code that access the MySQL data base, formats the report, and writes it to FILEA. } ?> <script language="javascript"> function NewWindow (sourceHtml){ Parameters about the window (location, size, etc.) } the HTML .... <a href="FILEA" onClick="<? outputOrderToFile(); ?>; NewWindow(this.href); return false"></a> Is there anything obviously wrong with that bit of logic/code? If there is a better way, please sketch it out for me. Thanks, Bob Sears, Owner WebWyshez -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#7428) next »