05-13-2015, 10:21 AM
Hello,
I am currently using get method to retrieve parameters and query database.
The problem I am having is I need to preserve the current query parameters and allow user to narrow search.
Example url
http://localhost/myapp/products/show_search_by_size?redirect=products%2Fshow_search_by_size_box&pick_brand=&pick_width=225&pick_ratio=None&pick_diameter=None
Now the user can click on a image of products and I want to narrow the search while still using the original parameters.
New url show pick_brand filter
http://localhost/myapp/products/show_search_by_size?redirect=products%2Fshow_search_by_size_box&pick_brand=15&pick_width=225&pick_ratio=None&pick_diameter=None
Is this the best method to search, url looks ugly.
Or should I use post and store in session variable?
How would you do it?
Thanks
I am currently using get method to retrieve parameters and query database.
The problem I am having is I need to preserve the current query parameters and allow user to narrow search.
Example url
http://localhost/myapp/products/show_search_by_size?redirect=products%2Fshow_search_by_size_box&pick_brand=&pick_width=225&pick_ratio=None&pick_diameter=None
Now the user can click on a image of products and I want to narrow the search while still using the original parameters.
New url show pick_brand filter
http://localhost/myapp/products/show_search_by_size?redirect=products%2Fshow_search_by_size_box&pick_brand=15&pick_width=225&pick_ratio=None&pick_diameter=None
Is this the best method to search, url looks ugly.
Or should I use post and store in session variable?
How would you do it?
Thanks