title: Selecting a specific button in a specific row in php
body: <p>I print some information from my database using php.I show it in a table format by using html.At each row there are 3 buttons where user can make changes about that course in that specific row.The problem is I can not define all of the buttons in that table.If it was a single submit button I would give it a name and then get the data by  $_POST['name'] but with multiple rows I am confused.
    Here is my code:     </p>
  
  <pre><code>for($i=0;$i&lt;$myarray_lenght;$i++) 
  {
      $row_id=$i;
      echo "&lt;tr&gt;";
      echo "&lt;td&gt;&lt;form action='private_page.php' method='POST'&gt; &lt;input type='radio' name=$row_id value='edit'&gt;  &lt;/form&gt; &lt;/input&gt;&lt;/td&gt;";
      echo "&lt;td&gt;". $myarr[$i]['thesis_name'].  "&lt;/td&gt;".
                  "&lt;td&gt;" .$myarr[$i]['student_id']."&lt;/td&gt;"
      echo "&lt;td&gt;&lt;form action='private_page.php' method='POST'&gt; &lt;input type='submit' name='more_info' value='Get more info of the Student !'&gt;  &lt;/form&gt;&lt;/input&gt;&lt;/td&gt;";
      echo "&lt;td&gt;&lt;form action='private_page.php' method='POST'&gt; &lt;input type='submit' name='remove' value='Remove the Student !'&gt;  &lt;/form&gt;&lt;/input&gt;&lt;/td&gt;";                                   
     echo "&lt;/tr&gt;";                
  }
  </code></pre>
  
  <p>I have tried to identify each row by an edit button and then said that whenever that that row (the radio button) is clicked, get the information from that row like that: </p>
  
  <pre><code> if ($_SERVER['REQUEST_METHOD'] === 'POST') {
  //something posted
  
  for($i=0;$i&lt;100;$i++)
  if (isset($_POST[$i])) {        
      if (isset($_POST['more info'])) {       
      // do something.   
  
    }
  </code></pre>