new window

From: Date: Tue, 19 Dec 2000 23:18:02 +0000
Subject: new window
Groups: php.general 
Request: Send a blank email to php-general+get-31078@lists.php.net to get a copy of this message
In the following, is there a way to get the script results to come up in one of those pop-up windows? <form action="<?php PHP_SELF ?>"> <table cellspacing="2" cellpadding="2" border="0"> <tr> <td valign=top> <b>Bore:</b> </td> <td valign=top> <input type="text" name="bore" size="4" maxlength="4"><br> </td> </tr> <tr> <td valign=top> <b>Stroke:</b> </td> <td valign=top> <input type="text" name="stroke" size="4" maxlength="4"><br> </td> </tr> <tr> <td valign=top> <b>Chamber Volume:</b> </td> <td valign=top> <input type="text" name="chamber_vol" size="4" maxlength="4"><br> </td> </tr> </table> <input type="submit" name="submit" value="Compute"><input type="Reset"> </form> if ($submit) { $pi = 3.14; $cyl_vol = (($pi/4) * (($bore * 2.54) * ($bore * 2.54)) * ($stroke * 2.54)); $comp_ratio1 = (($cyl_vol + $chamber_vol)/$chamber_vol); $comp_ratio = round($comp_ratio1,2); print ("<B>Based on a <font color=teal>$bore</font> inch bore, "); print ("and a <FONT COLOR=TEAL>$stroke</FONT> inch stroke, <BR>"); print ("your compression ratio is <FONT COLOR=TEAL>$comp_ratio</FONT>:1</B>"); }

« previous php.general (#31078) next »