title: Multiple Submit buttons, how do determine which one was clicked?
body: <p>I have a form with multiple submit buttons.</p>
  
  <p>Each submit button is an <code>IMG SRC</code> trash can which denotes the delete icon for messages in a web based messaging mail inbox</p>
  
  <p>what is the best way to figure out which submit button icon was clicked so that I can then write the PHP/MySQL code to DELETE the message?</p>
  
  <pre><code>if(!empty($_POST)){
          // How do I figure out which submit button has been clicked to get the ID of the message to delete?
  }
  
  &lt;form method="POST"&gt;
  &lt;input src="http://www.foo.com/img.png" id="button_1"&gt;
  &lt;input src="http://www.foo.com/img.png" id="button_2"&gt;
  &lt;input src="http://www.foo.com/img.png" id="button_3"&gt;
  &lt;input src="http://www.foo.com/img.png" id="button_4"&gt;
  ...
  &lt;input src="http://www.foo.com/img.png" id="button_100"&gt;
  &lt;/form&gt;
  </code></pre>