按钮HTML不会在IE7中提交表单

时间:2011-03-01 14:47:23

标签: forms button internet-explorer-7

有谁能让我知道为什么这个表格不会在IE7中提交?

<form id="orderform" name"orderForm" action="http://www.mydomain.com/secure/delivery-details.html" method="post">
<a  id="add">+</a>
 <table id="ordertable" width="533" border="0" cellspacing="0" cellpadding="2">
  <tbody>
    <tr class="titles">
      <td style="width:100px">Code (e.g 66203)</td>
      <td style="width:100px">Mtrs (e.g 10)</td>
      <td style="width:100px">Order Line Ref.</td>
      <td>Image</td>
    </tr>
    <tr class="item">
      <td class="prodcode"><input type="text" name="prodcode[]" id="prodcode" class="trigger" /></td>
      <td class="meterage"><input type="text" name="meterage[]" id="meterage" /></td>
      <td class="orderlineref"><input type="text" name="orderlineref[]" id="orderlineref" /></td>
      <td class="imgsample"></td>
    </tr>
    </tbody>
  </table>
  <button type="button" value="submit">Submit</button>
</form>

2 个答案:

答案 0 :(得分:14)

尝试<button type="submit" value="submit">Submit</button>

答案 1 :(得分:1)

按钮本身不起作用,因为它没有关联的动作。对象的正确HTML类型是

<input type="submit" name="submitter" value="Submit"/>
这样,当您单击按钮

时,浏览器将知道该怎么做