January 15th, 2013, 12:31 PM
Getting started with category selection
I've been working on a project for a while now that will be a large random image site where users can go to view or upload images. One image is displayed at a time, and clicking through pulls the next random image from the database.
All the images have one of 8 predefined categories. I'm going to add a select input that will allow the user to choose a certain category of images to be displayed.
I was planning on setting the selected category to a session variable, and just include the category in the SQL query.
What I'm not sure about is how to achieve a select input that will submit on its own when a selection is made, and how to keep that selection displayed from page to page?
Any help or suggestions of a better method is greatly appreciated.
January 15th, 2013, 12:41 PM
There are 10 kinds of people in the world. Those that understand binary and those that don't.
January 15th, 2013, 12:53 PM
That's exactly what I meant, I'll go that route. Thanks for pointing me in the right direction.
Originally Posted by gw1500se
January 15th, 2013, 01:08 PM
As for having it stay that way, page to page, a session variable would take care of that.
"Those who can make you believe absurdities can make you commit atrocities."