votako

errrrrrr

Oct 1st, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.86 KB | None | 0 0
  1. //file index.php
  2. <form action="processorder.php" method=post>
  3. <table border=0>
  4.     <tr bgcolor=#cccccc>
  5.         <td width=150>Item</td>
  6.         <td width=15>Quantity</td>
  7.     </tr>
  8.     <tr>
  9.         <td>Tires</td>
  10.         <td align=center><input type="text" name="tireqty" size=3 maxlegth=3></td>
  11.     </tr>
  12.     <tr>
  13.         <td>Oil</td>
  14.         <td align=center><input type="text" name="oilqty" size=3 maxlegth=3></td>
  15.     </tr>
  16.     <tr>
  17.         <td>Spark Plugs</td>
  18.         <td align=center><input type="text" name="sparkqty" size=3 maxlegth=3></td>
  19.     </tr>
  20.     <tr>
  21.         <td colspan=2 align=center><input type=submit value="Submit Order"></td>
  22.     </tr>
  23. </table>
  24. </form>
  25.  
  26.  
  27. //file processorder.php
  28. <?
  29.     echo "Order Process.";
  30.     echo date("H:i, js F");
  31.     echo "<br>";
  32.  
  33.     echo "<p>you'r order is a follows:";
  34.     echo "<br>";
  35.     echo $tireqty . " tires<br>";
  36.     echo $oilqty . " bottles of oil<br>";
  37.     echo $sparkqty . " spark plugs<br>";
  38. ?>
Advertisement
Add Comment
Please, Sign In to add comment