title: submit button not posted in chrome
body: <p>I have a form with two submit buttons. based on the button clicked i've to process the values on the post page. so i set the value for action attribute on the button click.  </p>
  
  <p>In firefox, it posts form fields and the submit button. but in chrome it only posts the form fields and not the button.. This is the code i've used:  </p>
  
  <pre><code>&lt;html&gt;
  &lt;script src='jquery-1.6.2.min.js'&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  $(document).ready(function(){
      $('#one,#two').click(function(){
       $("#myform").attr("action", "index.php");
          $("#myform").submit();
      });
  
  
  });
  &lt;/script&gt;
  &lt;?php
  echo "&lt;pre&gt;";print_r($_POST);echo "&lt;/pre&gt;";
  ?&gt;
  &lt;form method="POST" name='myform' id='myform'  &gt;
  &lt;input name="iint" value="hiox" type="text"&gt;
  &lt;input name="one" value="hiox" type="submit" id='one'&gt;
  &lt;input name="two" value="hiox" type="submit" id='two'&gt;
  &lt;/form&gt;
  &lt;/html&gt;  
  </code></pre>
  
  <p>On post firefox outputs like this:  </p>
  
  <pre><code>Array
  (
      [iint] =&gt; hiox
      [one] =&gt; hiox
  )  
  </code></pre>
  
  <p>And in chrome14 [linux version],  </p>
  
  <pre><code>Array
  (
      [iint] =&gt; hiox
  )
  </code></pre>
  
  <p>I need to check what button gets clicked. Any help, greatly appreciated. Thanksl!</p>