Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Button HTML will not submit form in IE7

Can anyone let me know why this form will not submit in 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>
like image 236
Andy Avatar asked Mar 01 '11 14:03

Andy


2 Answers

Try <button type="submit" value="submit">Submit</button>

like image 83
Cesar Avatar answered Sep 28 '22 09:09

Cesar


the button itself will not work because it has no action associated. the right HTML type for the object is

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

this way, the browser will know what to do when you click the button

like image 42
Alfabravo Avatar answered Sep 28 '22 09:09

Alfabravo