<<pre lang="xml">? $htmltag="<html> <body> <form method='post' action='activity.php'> <table> <tr> <td bgcolor='gray'>Item</td> <td bgcolor='gray'>Quantity</td> </tr> <tr> <td>Tires</td> <td><input type='text' name='value1'></td> </tr> <tr> <td>Oil</td> <td><input type='text' name='value2'></td> </tr> <tr> <td>Spark Plugs</td> <td><input type='text' name='value3'></td> </tr> <tr> <th colspan=2><input type='submit' value='SUBMIT ORDER' name='submit1'> <select name='menu'> <option selected>I'm A Regular Customer</option> <option>TV Advertising</option> <option>Phone Directory</option> <option>Word of Mouth</option> </select> </th> </tr> </table> </form> </body> </html>"; if ($_POST['submit1']) { echo "<font size='12' font face = 'Arial'>BOBS AUTO PARTS</font>"; echo "<br><font size='10' font face = 'Arial'>Order Results</font>"; echo "<br><br>"; echo "<br><font face = 'Arial'>Order Processed at "; echo "<br><br>"; $tire = $_POST['value1']; $oil = $_POST['value2']; $spark = $_POST['value3']; $itemsum = $tire+$oil+$spark; echo "<br><font face = 'Arial'>".$tire." tire"; echo "<br><font face = 'Arial'>".$oil." oil"; echo "<br><font face = 'Arial'>".$spark." spark plugs"; $prodtire = $tire*2; $prodoil = $oil*4; $prodspark = $spark*6; $prodsum = $prodtire+$prodoil+$prodspark; $deduction = $prodsum*0.10; $total = $prodsum-$deduction; $date1=time(); echo "<br><font face = 'Arial'>Your Order is as follows: ".$date1; echo "<br><font face = 'Arial'>Items Ordered ".$itemsum; echo "<br><font face = 'Arial'>Sub Total: $".$prodsum; echo "<br><font face = 'Arial'>Total: $".$total; $combobox1 = $_POST['menu']; echo "<br><br>".$combobox1; } else { echo $htmltag; } ?
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)