title: Send value of submit button when form gets posted
body: <p>I have a list of names and some buttons with product names. When one of the buttons is clicked the information of the list is sent to a PHP script, but I can't hit the submit button to send its value. How is it done?
  I boiled my code down to the following:</p>
  <p><strong>The sending page:</strong></p>
  <pre><code>&lt;html&gt;
  &lt;form action=&quot;buy.php&quot; method=&quot;post&quot;&gt;
      &lt;select name=&quot;name&quot;&gt;
          &lt;option&gt;John&lt;/option&gt;
          &lt;option&gt;Henry&lt;/option&gt;
      &lt;select&gt;
      &lt;input id='submit' type='submit' name='Tea'    value='Tea'&gt;
      &lt;input id='submit' type='submit' name='Coffee' value='Coffee'&gt;
  &lt;/form&gt;
  &lt;/html&gt;
  </code></pre>
  <p><strong>The receiving page: buy.php</strong></p>
  <pre><code>&lt;?php
      $name = $_POST['name'];
      $purchase = $_POST['submit'];
      //here some SQL database magic happens
  ?&gt;
  </code></pre>
  <p>Everything except sending the submit button value works flawlessly.</p>