title: button links in html table for every rows ,passing parameter id to row
body: <p>In my HTML table I have created a button  link for each and every row . I need to edit existing rows and add new rows. The links are working  perfectly but I need to pass parameters to url  .Like for example I f I need to   add new rows I need to get the values of the  data cells like</p>
  
  <pre><code>echo "&lt;form action=insert_rows.php?machine_ip&amp;crawler_type&amp;keywords&amp;instances_no method=get&gt;";
  </code></pre>
  
  <p>Its going to the proper link but  I am not able to the row data ,its not getting passed, same with existing rows, through submit button I am able submit to the link but I am not able to pass the row values.For existing rows I need to pass the respective primary keys and then access the  rows.</p>
  
  <p>My code so far</p>
  
  <pre><code>&lt;style&gt;
  input{
  width: 100%
  
  
  
  }
  
  &lt;/style&gt;
  
  
  
  &lt;?php
  include('db_connect.php');
  
  
  $conn = db_connect();
  mysql_select_db("crawler_status");
  
  
  
  $query="Select * from crawler_info";
  
  $result=mysql_query($query);
  
  
  echo "&lt;table style=width:1000px border=2&gt;";
  echo "&lt;tr&gt;";
   echo "&lt;td&gt;"."&lt;b&gt;"."Machine IP"."&lt;b&gt;"."&lt;/td&gt;";
  echo "&lt;td&gt;"."&lt;b&gt;"."Crawler Type"."&lt;/b&gt;"."&lt;/td&gt;";
  echo "&lt;td&gt;"."&lt;b&gt;"."Keywords"."&lt;/b&gt;"."&lt;/td&gt;";
  echo "&lt;td&gt;"."&lt;b&gt;"."No Of Instances"."&lt;/b&gt;"."&lt;/td&gt;";
  echo "&lt;td&gt;"."&lt;b&gt;"."No Of Keywords"."&lt;/b&gt;"."&lt;/td&gt;";
  echo "&lt;td&gt;"."&lt;b&gt;"."Running Status"."&lt;/b&gt;"."&lt;/td&gt;";
  echo "&lt;/tr&gt;";
   while($row=mysql_fetch_array($result)){
   echo "&lt;tr&gt;";
   echo "&lt;form action=individual_rows.php method=get&gt;";
   echo"&lt;td&gt;". $row['machine_ip']."&lt;/td&gt;";
   echo "&lt;td&gt;". $row['crawler_type']."&lt;/td&gt;";
   echo "&lt;td&gt;". $row['keywords']."&lt;/td&gt;";
   echo "&lt;td&gt;". $row['no_of_instances']."&lt;/td&gt;";
   echo "&lt;td&gt;". $row['no_of_keywords']."&lt;/td&gt;";
   echo "&lt;td&gt;". $row['running_status']."&lt;/td&gt;";
   echo "&lt;td&gt;"."&lt;input type=submit value =EDIT&gt;&lt;/td&gt;";
   echo "&lt;/form&gt;";
   echo "&lt;/tr&gt;";
  
  
  
   }
   echo "&lt;tr&gt;";
    echo "&lt;form action=insert_rows.php?machine_ip&amp;crawler_type&amp;keywords&amp;instances_no method=get&gt;";
   echo "&lt;td&gt;"."&lt;input type=text name=machine_ip form=my_form&gt;&lt;/td&gt;";
   echo "&lt;td&gt;"."&lt;input type=text name=crawler_type form=my_form &gt;&lt;/td&gt;";
   echo "&lt;td&gt;"."&lt;input type=text name=keywords form=my_form&gt;&lt;/td&gt;";
   echo "&lt;td&gt;"."&lt;input type=text name= =instances_no&gt;&lt;/td&gt;";
   echo "&lt;td&gt;"."&lt;input type=text name=keywords_no&gt;&lt;/td&gt;";
   echo "&lt;td&gt;"."&lt;input type=submit value =submit&gt;&lt;/td&gt;";
   echo "&lt;/form&gt;";
   echo "&lt;/tr&gt;";
  
  
   echo "&lt;/table&gt;";
   ?&gt;
  </code></pre>
  
  <p>How should I proceed?</p>