title: PHP multiple image button submit form
body: <p>I have been creating a website where my users can rate images that have been uploaded. Currently i use radio buttons and a submit button to get the users rating and save it within the system. I would like to change this so that the code uses image clicks to get the users rating. So far i have the following code however it only works for one image button. Is there any way to change this to get the result depending on what image has been clicked. </p>
  
  <p>Code:</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;form&gt;
  &lt;input
          type="image"
          name="flag_submit"
          src="img/Flag.png"
          onmouseover="this.src='img/Flag_Click.png'"
          onmouseout="this.src='img/Flag.png'"
          height="30"
          width="30"
          /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>PHP</strong></p>
  
  <pre><code>if (isset($_POST['flag_submit_x']))
  {
      //Do process of rating.
  }   
  </code></pre>
  
  <p>Is there any way that i could create multiple image buttons and in the PHP code detect what image button has been pressed?</p>