PHP simple Calculation (Server Side)

Output from HTML code below:

Price:

Quant:

HTML Code in this file which is named EW7_PhpCalcDemo.php:

<form action="EW7_PhpCalc.php" method="post">
<p>Price: <input type="text" name="Price"/></p>
<p>Quant: <input type="text" name="Quantity"/></p>
<p> <input type="submit" name="submit" value="Calculate"/></p>
</form>

PHP Code in output file PhpCalc.php when you hit [Calculate]:

<body>
<h1>Calulation Results</h1>

   <?php
   $Price=$_POST['Price'];
   $Quantity=$_POST['Quantity'];
   $Total=$Price*$Quantity;

   print
   "Price= $ $Price <br />
   Quant= $Quantity <br />
   Total= $ $Total"
   ?>

</body>