<!Doctype html> <html> <head> <title>php order form</title> <meta charset="utf-8" /> </head> <body> <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" maxlength="3" /></td> </tr> <tr> <td>Oil</td> <td align="center"><input type="text" name="oilqty" size="3" maxlength="3" /></td> </tr> <tr> <td>Spark Plugs</td> <td align="center"><input type="text" name="sparkqty" size="3" maxlength="3" /></td> </tr> <tr> <td colspan="2" align="center"> <input type="submit" value="Submit order" /> </td> </tr> </table> </form> </body> </html>
转载于:https://www.cnblogs.com/sandraBlog/p/phpForm.html