I've run into a slight problem with an application I'm working on. A user performs a search which will return a page with a table containing the search results. Each row of the table has a description field which is a link to more details about that particular row.
Currently when the user clicks on a description link PHP generates the URL something along the lines of <a href="<?php echo $PHP_SELF; ?>?opcode=View&req_no=<?php echo $search->[5]; ?>">
The problem is that using this method users can type in the url directly and replace the req_no with any number they wish, possibly viewing records they shouldn't be viewing.
Is there a method that anyone knows of that will allow me to set a session variable at the time the user clicks the link so that it is not able to be changed via the URL?
Any suggestions would really be appreciated and if you think you know what I'm talking about but find me slightly confusing don't let that stop you!!
Thanks in advance guys,
Matt Anderson