html表单post提交到.php文件中,POST得不到值是为什么,代码如下。
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Bob汽车零件商店</title>
</head>
<body>
<form action="processorder.php"mathod="post">
<table border="0">
<tr bgcolor="#ccccccc">
<td width="150">Item</td>
<td width="15">Quantiy</td>
</tr>
<tr>
<td>Tires</td>
<td align="center"><input type="text"name= "tireqty"size= "5"
maxlength="3"/></td>
</tr>
<tr>
<td>Oil</td>
<td align="center"><input type="text" name="oilqty" size="5"
maxlength="3"/></td>
</tr>
<tr>
<td>Spark Plugs</td>
<td align="center"><input type="text" name="sparkqty" size="5"
maxlength="3"/></td>
</tr>
<tr>
<td colspan="3" align="center"><input type="submit" value="Submit Order"/></td>
</tr>
</table>
</form>
</body>
</html>
php文件代码
网页效果 展开
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Bob汽车零件商店</title>
</head>
<body>
<form action="processorder.php"mathod="post">
<table border="0">
<tr bgcolor="#ccccccc">
<td width="150">Item</td>
<td width="15">Quantiy</td>
</tr>
<tr>
<td>Tires</td>
<td align="center"><input type="text"name= "tireqty"size= "5"
maxlength="3"/></td>
</tr>
<tr>
<td>Oil</td>
<td align="center"><input type="text" name="oilqty" size="5"
maxlength="3"/></td>
</tr>
<tr>
<td>Spark Plugs</td>
<td align="center"><input type="text" name="sparkqty" size="5"
maxlength="3"/></td>
</tr>
<tr>
<td colspan="3" align="center"><input type="submit" value="Submit Order"/></td>
</tr>
</table>
</form>
</body>
</html>
php文件代码
网页效果 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询