I have a menu made up of images where users can click an image to load the
next page. I want each image to send a unique id number to the page the
user loads. Based on this id number, the page that will be loaded will
display something different.
Since I'm not using a form to post data, I decided to save the id number as
a session variable. The loaded page will read the variable when determining
what to load. The problem I'm encountering is where to put the code to get
the first page to save the id number (I know how to save and retrieve
session variables, so that's not an issue).
I've tried putting the php script inside the onclick attribute of the link,
but that didn't work. Does anyone know how I can do this, or know a better
way? Thanks.
--
John Victor