I'm implementing a search box using CodeIgniter, but I'm not sure about how I should pass the search parameters through.
I have three parameters - the search string, product category, and the sort order. They're all optional.
Currently, I'm sending the parameters through POST to a temporary method which forwards the parameters to the regular URI form. This works fine.
But I'm using a weird URI format: e.g.
http://site.com/products/search=computer,sort=price,cat=laptop
Does anyone have a better/cleaner format of passing stuff through? I was thinking of passing it into the products method as arguments, but since the parameters are optional things would get messy.
Or should I suck it up and just turn GET methods on? :O