Hello,
I have a form setup where users can select multiple checkboxes, but when I try to test it, only the last input is actually shown on my search results page (I want to make it so that it brings back everything that’s checked). Clearly I’m doing something wrong, so hopefully someone can chime in? Thanks in advance. =]
Here is my form:
<form method="post" action="{path='main/searchresults'}">
<input type="submit" value="Go!" />
<ul>
<li>
<input id="Beef" name="search:meat" type="checkbox" value="Beef"><label for="Beef">Beef</label>
</li>
<li>
<input id="Chicken" name="search:meat" type="checkbox" value="Chicken"><label for="Chicken">Chicken</label>
</li>
<li>
<input id="Pork" name="search:meat" type="checkbox" value="Pork"><label for="Pork">Pork</label>
</li>
</ul>
</form>Here is my channel entries tag:
{exp:channel:entries channel="recipes" dynamic_parameters="search:meat"}
{body}
{/exp:channel:entries}