I have a dilemma going on here. I need to use a session to navigate records in a foreach loop.
foreach($key as $val)
{
echo '<tr><td><a href="'.$key.'">$val</a></td></tr>';
}
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?
Thanks
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.