2011-03-01 55 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"/> 

這樣,當你點擊按鈕的