Hello,
I am using the Search Module to make a simple search form that let’s the user search keywords for videos in a video library.
So far so good.
However, I would like the user to be able to narrow the search by checking one or two of my two checkboxes called “High Definition” and “Standard Definition”. I thought that I would be able to just have checkboxes in my form, for example:
<input type="checkbox" name="hq" value="High Quality" checked="checked" >High Qualityand then have the form post the variables, with a standard
<form name="form" class="searchform" method="post" action="{site_url}/clients/results">The problem is that the {exp:search} does not accept the POST variables in the form, it redirects to a template in the results page with a hash URL like
results/1deb2acb7c153114e19487249ed2b313/
and all POST variables seem to be lost. I checked with debugging on and HTTPFox as well and indeed the POST variables got lost, presumably because the search module redirects to the hash URL.
My question is then, what is the least painful way to get my checkbox values to the Results page when the user hits “Search”? Is there any way to do this using only the Search Module? How is a good way to approach this problem?
Thanks