Hi,
First time in the Java section here.
I have an HTML form and a PHP script to do a simple calculation but it has to take me to a different page for the results.
The calculator is really simple. The user enters just height and width and the calculator applies the formula, then display the answer to the nearest 10th.
[PHP]
<?
$cost=((($_REQU EST["height"]*$_REQUEST["width"])+160)*1.65);
echo "<br />The cost of the commission will be $" .round($cost, -1);
?>
[/PHP]
I know nothing of Java script. Can someone point me in the right direction for a script that will do this calculation and display it on the same page as the user inputs the data?
Thank you!!
Michael
First time in the Java section here.
I have an HTML form and a PHP script to do a simple calculation but it has to take me to a different page for the results.
The calculator is really simple. The user enters just height and width and the calculator applies the formula, then display the answer to the nearest 10th.
[PHP]
<?
$cost=((($_REQU EST["height"]*$_REQUEST["width"])+160)*1.65);
echo "<br />The cost of the commission will be $" .round($cost, -1);
?>
[/PHP]
I know nothing of Java script. Can someone point me in the right direction for a script that will do this calculation and display it on the same page as the user inputs the data?
Thank you!!
Michael
Comment