PHP - how to use a session in place of the GET var
<p>I have a dilemma going on here. I need to use a session to navigate records in a foreach loop.</p>

<pre><code>foreach($key as $val)
{
  echo '&lt;tr&gt;&lt;td&gt;&lt;a href="'.$key.'"&gt;$val&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;';
}
</code></pre>

<p>Ok, the $key in this equasion is my database key and when the user clicks the link, it will take them to the next page. This "next page" parses the data and places it into a query string for the URL. I don't like the way it's working with the query string and want to use a session to handle the $key instead but I dont know how to make that work for a hyperlink. Can someone please give me a hand?</p>

<p>Thanks</p>

<p>The whole thing in a nutshell is that I don't want to get the key off the URL. It has nothing to do with security but I want to put that key into a hidden field so that I can parse it later.</p>
