title: How to connect link to an edit form
body: <p>I need a form that allows a user to edit data from an SQL database.</p>
  
  <p>The main page of my form contains a table where any available data is shown and, also, there are <em>edit</em> and <em>delete</em> options available. Sample:</p>
  
  <pre><code>{
  $row=mysql_fetch_array($result);
  echo "&lt;tr&gt;";
  echo "&lt;td&gt;".$row["name"]."&lt;/td&gt;";
  echo "&lt;td&gt;".$row["occuptation"]."&lt;/td&gt;";
  echo '&lt;td&gt;&lt;a href="edit.php"&gt;&lt;img src="edit.png"/&gt;&lt;/a&gt;&lt;/td&gt;';
  echo '&lt;td&gt;&lt;a href="delete.php"&gt;&lt;img src="delete.png"/&gt;&lt;/a&gt;&lt;/td&gt;';
  echo "&lt;/tr&gt;";
  }
  </code></pre>
  
  <p>When the user clicks the <code>edit.png</code> I need it to direct to <code>edit.php</code> where the data from the whole row selected (whichever row the user chooses to click edit or delete from) shows up in a form (like default values). I have no idea how to achieve this. </p>
  
  <p>Any help is appreciated! Please tell me if i'm being confusing and I will try to explain further. </p>