I need to get unstuck with a problem. Will you help? :( |
[eluser]Kinsbane[/eluser]
Hi folks, I have a project that involves listing a bunch of records from a database. People can make a selection from one of the following: solution, technology, category, and make. I had originally grabbed all the unique types of each of these from the database and put them in a <select> box, like so: Code: <select name="" onchange="[removed]=this.options[selectedIndex].value"> However, this is very limiting as it allows to only browse by make, category, technology or solution at a time. What I need is to allow users to make a choice between 1 or all of the different types they can browse by. But what I also need is when the form is submitted, the URL needs to show their selections, so they know they can link to those browsing results again. Ex: http://www.site.com/browse/technology/category Ex: http://www.site.com/browse/make Ex: http://www.site.com/browse/category/ I know CI only does forms via post, so I'm wondering how I can go forward with this. Should I just make the index() function in the browse controller accept up to four arguments, and then query the database with four different clauses with different combinations? I'm betting that this is yet again one of those things I'm overthinking to the point where the simplest solution escapes me. ![]() |
Messages In This Thread |
I need to get unstuck with a problem. Will you help? :( - by El Forum - 01-30-2008, 03:10 PM
I need to get unstuck with a problem. Will you help? :( - by El Forum - 01-30-2008, 04:46 PM
I need to get unstuck with a problem. Will you help? :( - by El Forum - 01-30-2008, 08:49 PM
I need to get unstuck with a problem. Will you help? :( - by El Forum - 01-31-2008, 11:14 AM
I need to get unstuck with a problem. Will you help? :( - by El Forum - 01-31-2008, 04:25 PM
I need to get unstuck with a problem. Will you help? :( - by El Forum - 01-31-2008, 05:47 PM
I need to get unstuck with a problem. Will you help? :( - by El Forum - 01-31-2008, 06:42 PM
|