title: Form not submitting correct value from datatable
body: <p>Looks simple but may be I am overlooking something here.<br></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>(document).ready(function(){
              $('#data').dataTable();
    }</code></pre>
  </div>
  </div>
  </p>
  
  <pre><code>if (isset ($_POST ['deleteUser'])) 
  { 
    echo "&lt;p&gt;Received the form data&lt;/p&gt;"; 
    echo $_POST['hidden']; 
  }
  
  &lt;form action="" method="post"&gt;
  &lt;table id="data"&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;td&gt;First Name&lt;/td&gt;
        &lt;td&gt;Delete Name&lt;/td&gt;
        &lt;td&gt;Email&lt;/td&gt;
        &lt;td&gt;&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
        &lt;?php 
        $cursor=$collection-&gt;find (); 
        foreach ( $cursor as $document ) {
        ?&gt;
        &lt;tr&gt;
          &lt;td class='First_Name'&gt;
            &lt;?php echo $document [ "First_Name"]; ?&gt;
          &lt;/td&gt;
          &lt;td class='Last_Name'&gt;
            &lt;?php echo $document [ "Last_Name"]; ?&gt;
          &lt;/td&gt;
          &lt;td class='Email'&gt;
            &lt;?php echo $document [ "Email"]; ?&gt;
          &lt;/td&gt;
          &lt;td&gt;
            &lt;input type="hidden" name=hidden value='&lt;?php echo $document ["First_Name"]; ?&gt;'&gt;
            &lt;input type="submit" value="Delete" name="deleteUser"&gt;
          &lt;/td&gt;
        &lt;/tr&gt;
        &lt;?php }?&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Here I am trying to send the value from the table to the php code on the same page. 
  When I click on delete, It always sends in the First name of the last row. <br><br>
  What is causing the form to submit only the last row when the Button is clicked?
  How can I pass the value of the hidden tag for the row in which delete button was clicked on?
  <br><br></p>
  
  <p>FYI :  I have enabled DataTable for the table. </p>