Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //file index.php
- <form action="processorder.php" method=post>
- <table border=0>
- <tr bgcolor=#cccccc>
- <td width=150>Item</td>
- <td width=15>Quantity</td>
- </tr>
- <tr>
- <td>Tires</td>
- <td align=center><input type="text" name="tireqty" size=3 maxlegth=3></td>
- </tr>
- <tr>
- <td>Oil</td>
- <td align=center><input type="text" name="oilqty" size=3 maxlegth=3></td>
- </tr>
- <tr>
- <td>Spark Plugs</td>
- <td align=center><input type="text" name="sparkqty" size=3 maxlegth=3></td>
- </tr>
- <tr>
- <td colspan=2 align=center><input type=submit value="Submit Order"></td>
- </tr>
- </table>
- </form>
- //file processorder.php
- <?
- echo "Order Process.";
- echo date("H:i, js F");
- echo "<br>";
- echo "<p>you'r order is a follows:";
- echo "<br>";
- echo $tireqty . " tires<br>";
- echo $oilqty . " bottles of oil<br>";
- echo $sparkqty . " spark plugs<br>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment