This seems like a simple issue, but I can't figure out a solution.
I need to set a session variable when a hyperlink is clicked. What's the best way to do this? Some sort of JavaScript function that has PHP within to set the session var?
Do you want to set the session on the linked page or on the page with the link? If on the same page, you will need JavaScrip event on_click, but if on the other page, just set it there, I dont see why you have to set it before hand.