php-windows | 2001051

[PHP-WIN] HTML/PHP/Javascript From: Bob Sears (rsears <email protected>)
Date: 05/09/01

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 <email protected>
For additional commands, e-mail: php-windows-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>