thanks for answering, but I don't think you quite get what I'm trying to say here. I completely understand how sessions work, but how exactly is the varriable 'category' set when the user clicks one of the categories? If I'm a user and I click on a category, then what exactly will trigger this line of code? I've created a drop down menu using list and css for both location and category. I could use drop down box for categories, but for location it can get a little messy since it will have sub items. For example, Province will be Ontario then City names and so on.
To make things more clear, I'm using a list that shows sub items when user hover mouse over.
Location
Ontario - > Toronto (hover shows this option)
That's something I can't do in drop down list <select>, right?
If it's not too much to ask, then can you please show me in few lines how you're going to save the category once it is selected.