In working with CodeIgniter, it appears $_GET is disabled by default. I'm wondering why this is.
A lot of times, I want to build very long search queries. So for example, I have a form that allows you to search the database by N different fields. In code igniter, the url to display my search result would be:
http://mysite.com/field1/field2/field3/.../fieldN-1/fieldN
So an example url would be
http://mysite.com/shopping/toys/educational/age6-8/page1/sortbypriceinascendingorder/
I don't particularly like this because:
1) what if i want to add more search parameters at a later time such that we have something like:
I don't like how I'm adding "boys-only" and "in-stock" at the end of the page/sortby segments of the url. It doesn't feel right.
2) what if a person doesn't use the "toy" segment and "educational" segment? Then the url looks kind of clumsy
http://mysite.com/shopping/all%5Fproducts/all%5Fcategories/age6-8/page1/sortbypriceinascendingorder/
Doesn't it make more sense to use $_GET parameters for search because then the order in which you place query string parameters (&field=value) doesn't matter? And omitting a query string parameter automatically means "not selected".