Html Post具有重复的属性
问题是:我的表单中有单选按钮。默认选中一个单选按钮。当我选中另一个并按下apply(应用)按钮时,我有一个带有重复属性但值不同的$u POST: 国家:55 国家:72 第二个是先前检查的值。预期只有一个属性。 我不明白为什么会这样Html Post具有重复的属性,html,post,Html,Post,问题是:我的表单中有单选按钮。默认选中一个单选按钮。当我选中另一个并按下apply(应用)按钮时,我有一个带有重复属性但值不同的$u POST: 国家:55 国家:72 第二个是先前检查的值。预期只有一个属性。 我不明白为什么会这样 <div id="countries"> <table> <tr> <td> <input name="country" type="radio" valu
<div id="countries">
<table>
<tr>
<td>
<input name="country" type="radio" value="14" id="country_14" checked="checked"/> <label for="country_14">Austria</label>
</td>
<td>
<input name="country" type="radio" value="117" id="country_117"/> <label for="country_117">Latvia</label>
</td>
</tr>
<tr>
<td>
<input name="country" type="radio" value="21" id="country_21"/> <label for="country_21">Belgium</label>
</td>
<td>
<input name="country" type="radio" value="123" id="country_123"/> <label for="country_123">Lithuania</label>
</td>
</tr>
<tr>
<td nowrap>
<input name="country" type="radio" value="33" id="country_33"/> <label for="country_33">Bulgaria</label>
</td>
<td nowrap>
<input name="country" type="radio" value="124" id="country_124"/> <label for="country_124">Luxembourg</label>
</td>
</tr>
</table>
</div>
可能该帖子是一个数组帖子,比如:
<form action="." method="POST">
<input value="val1" name="name[0]">
<input value="val2" name="name[1]">
<input type="sumbit" value="Submit">
</form>
你能帮我们发布你的HTML吗?你能给我们看一下那张表格的HTML代码吗?