Checkboxes and URL comma separated values
-
I am using two checkboxes in my searchform:
<input type="checkbox" name="cat" value="8" /><label>Category 8</label> <input type="checkbox" name="cat" value="9" /><label>Category 9</label>
When I submit search, url looks this way:
/??s=searchedterm&cat=8&cat=9
But I need to search in 8 AND 9 categories, so I need this omma separated values in url:
/??s=searchedterm&cat=8,9
How can I change amperstand type of url to comma separated?
Thanks
Alex
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Checkboxes and URL comma separated values’ is closed to new replies.