title: Passing a value through Button to Php function
body: <p><img src="https://i.stack.imgur.com/rbZOo.png" alt="enter image description here"></p>
  
  <p>I am beginner in php and I am currently working on admin panel (you can see my admin panel page). The thing is that I want to pass serial number through these two buttons to perform further. But I can't find how to send <code>$value</code> to edit and delete a particular line. </p>
  
  <pre><code>&lt;div id="headin2"&gt;&lt;strong&gt; &lt;h3&gt;Admin page &lt;/h3&gt;&lt;/strong&gt;&lt;/div&gt;
  &lt;?php 
      echo "&lt;table width=\"100%\" border=\"0\" id=\"tab\"&gt;";
      echo "&lt;tr&gt;";
      echo "&lt;th id=\"td1\"&gt;Serial No&lt;/th&gt;&lt;th id=\"td2\"&gt;Account Title&lt;/th&gt;
                &lt;th id=\"td3\"&gt;Email&lt;/th&gt;&lt;th id=\"td4\"&gt;Gender&lt;/th&gt;&lt;th id=\"td5\"&gt;city&lt;/th&gt;
                &lt;th id=\"td6\"&gt;Course&lt;/th&gt;&lt;th id=\"td7\"&gt;status&lt;/th&gt;&lt;th id=\"td8\" colspan=\"3\"&gt;Action&lt;/th&gt;";
      echo "&lt;/tr&gt;";
  
      while ( $row = mysql_fetch_array($query))
      {
          $SN = $row['SN'];
          $actitle = $row['ac_title']; 
          $email = $row['email'];
          $gender  = $row['sex']; 
          $cite = $row['city'];
          $course = $row['CRS'];
          $status  = $row['status'];  
  
          echo "&lt;tr&gt;";
          echo "&lt;td&gt;".$SN."&lt;/td&gt;&lt;td&gt;".$actitle."&lt;/td&gt;&lt;td&gt;".$email."&lt;/td&gt;
                    &lt;td&gt;".$gender."&lt;/td&gt;&lt;td&gt;".$cite."&lt;/td&gt;&lt;td&gt;".$course."&lt;/td&gt;&lt;td&gt;".$status."&lt;/td&gt;
                    &lt;td&gt;"."&lt;input type=\"button\" name=\"edit\" value=\"Edit\"/&gt;
                    &lt;input type=\"button\" value=\"Delete\" name=\"delete\" &gt;"."&lt;/td&gt;";
          echo "&lt;/tr&gt;";
      }
  ?&gt;
  
  &lt;/table&gt;
  </code></pre>