title: handling multiple buttons with same name and value in one form
body: <p>I have multiple submit buttons on a site. They used to move elements up and down and I want to be them in one whole form in case of the user changes meanwhile some other values so everything is saved. The Problem now is I need the element ID of the button which was clicked.</p>
  
  <p>So here is the code in the loop :</p>
  
  <pre><code>div class="form-order"&gt;&lt;?php echo $elements[$z]['element_order']; ?&gt; &lt;/div&gt;
  &lt;input type="submit" name="edit_form_operation" value="&amp;#9650;" class="button-primary" 
  &lt;?php if($elements[$z]['element_order'] == 1) echo 'disabled="disabled"'; ?&gt; /&gt;&lt;br /&gt;
  
  &lt;input type="submit" name="edit_form_operation" value="&amp;#9660;" class="button-primary" 
  &lt;?php 
  $highest_element = $fdb-&gt;get_element_highest_order($form[$i]['form_id']);
  if($elements[$z]['element_order'] == $highest_element) echo 'disabled="disabled"'; ?&gt; /&gt;
  </code></pre>
  
  <p>And onclick of that specific button in the for loop he should write this code first so I know which element has to be moved</p>
  
  <pre><code>echo '&lt;input type="hidden" name="change_element_id" value="'.$elements[$z]['element_id'].'" &gt;';
  </code></pre>
  
  <p>I'm also open for another solution of this problem. </p>