1-1 orderform.html

创建订单表单

 

 1 <form action="processorder.php" method="post">
 2 <table border="0">
 3 <tr bgcolor="#cccccc">
 4 <td width="150"> item </td>
 5 <td width="500"> quantity </td>
 6 </tr>
 7 <tr>
 8  <td> tires </td>
 9  <td align="center"> <input type="text" name ="tiregty" size="30" maxlength="3"/></td>
10 </tr>
11 <tr>
12 <td> oil</td>
13 <td align="left"> <input text="text" name="oilgty" size="30" maxlength="3"/> </td>
14 </tr>
15 <tr bgcolor="#cccccc">
16 <td > spark plugs</td>
17 <td align="center" > <input type= "text"  name="sparkqty" size="30"></td>
18 </tr>
19 <tr>
20 <td colspan="2" align="center"><input type="submit" value="submit order"/></td>
21 </tr>
22 </table>
23 </form>

 表单的处理

 

 

 1 <html>
 2 <head>
 3 <title> bob's auto parts</title>
 4 <body>
 5 <h1>bob's auto parts </h1>
 6 <?php
 7 // shus
 8 echo '<p> processed.</p>';
 9 echo "<p> order processed at ";
10 echo date('H:i, jS F Y');
11 echo "</p>";
12 echo "<p> order processed at ".date('H:i ,jS F Y')."</p>";
13 ?>
14 </body>
15 </head>
16 </html >
View Code

 

posted @ 2016-04-25 15:49  张志恒的博客  阅读(376)  评论(0)    收藏  举报