How do I populate the values of form fields with data from another page?
<p>I'm trying to insert variables from an SQL result into a HTML form in a way that the user can open a form and auto populate the values based on selected data.</p>

<p>I am displaying a table with query results, I'd like the user to be able to open a form that populates certain fields with data from a link in the table row.</p>

<p>This is what I have so far:</p>

<pre><code>  &lt;?php
$result = mysql_query("SELECT * FROM numbers WHERE username = '$user_name' order by id DESC");
while($row = mysql_fetch_array($result))
  {
  echo $row['group_name'] .  " "  . $group_numbers = $row['group_numbers'] = '&lt;a href="myaccount_group.php"&gt;Click here to insert numbers&lt;/a&gt;'  . '&lt;br/&gt;&lt;br/&gt;';

  ?&gt; 
</code></pre>

<p>I was then going to try and pick up the POST variable on <code>account_group.php</code> and then insert the numbers into form fields when opened.</p>

<p>Basically, I need a way to list all of the groups which contain numbers, and then have the ability to select which group of numbers you want to use (so to add them to the form).</p>
