title: HTML form POST method not working (despite URL params showing)
body: <p>Got a form setup to submit some stuff. </p>
  
  <p>There are three submit buttons, all with the same name (choice) and different IDs (1, 2 &amp; 3).</p>
  
  <p>Using POST method to submit the form to form.php</p>
  
  <p>Form.php loads and I can see the form params in the URL.</p>
  
  <p>However there is no POST data coming in.</p>
  
  <p><strong>Index.php:</strong></p>
  
  <pre><code>&lt;form action='form.php' action='POST'&gt;
  
  &lt;input type='hidden' name='index' value='".$cell_count."'&gt;
  
  &lt;div class='btn-group btn-group-m'&gt;
    &lt;button name='choice' value='1' type='submit' class='btn btn-default btn-danger'&gt;
      ...
    &lt;/button&gt;
  
    &lt;button name='choice' value='2' type='submit' class='btn btn-default btn-warning'&gt;
      ...
    &lt;/button&gt;
  
    &lt;button name='choice' value='3' type='submit' class='btn btn-default btn-success'&gt;
      ...
    &lt;/button&gt;
  &lt;/div&gt;
  
  &lt;button name='choice' type='submit' value='4' class='btn btn-default btn-sm'&gt;
    ...
  &lt;/button&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>Form.php :</strong> </p>
  
  <pre><code>&lt;?php
  
    var_dump($_POST);
  
    if($_POST['choice'] == 3) {
      echo "Chose 3";
    }
    else if($_POST['choice'] == 2) {
      echo "Chose 2";
    }
    else if($_POST['choice'] == 1) {
      echo "Chose 1";
    }
  
   echo "index: " . $_POST['index'];
  
  ?&gt;
  </code></pre>
  
  <p><strong>Result :</strong></p>
  
  <p><a href="http://i.stack.imgur.com/JrB7j.png" rel="nofollow">http://i.stack.imgur.com/JrB7j.png</a> 
  Thanks for any help you can offer!</p>