2011-03-01 59 views
6

任何人都可以让我知道为什么这个表格不会在IE7中提交吗?按钮HTML不会在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> 
+0

可能重复浏览器会知道该怎么做[IE7 -

回答

14

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

+0

很好的捕捉,是吧? – Ismael 2011-03-01 14:50:50

+1

NIce一个工作! – Andy 2011-03-01 14:51:11

+0

@安迪别忘了接受问题的答案。谢谢 – Cesar 2011-03-01 14:54:12

1

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

<input type="submit" name="submitter" value="Submit"/> 

这样,当你点击按钮的