jamus
1
Hi,
Working backwards (as I usually do) my ‘results’ page currently functions by getting values from the URL
E.g. tagged.php?tags=pink&tags=snow
How can I make a form with checkboxes for each value generate a URL like this?
Or is there a better way of passing the values from form to result?
<form method="get">
<select name="tags[]" multiple="multiple">
<option value="foo">foo</option>
<option value="bar">bar</option>
<option value="tip">tip</option>
<option value="top">top</option>
</select>
</form>

That isn’t checkboxes.
<input type=“checkbox” name=“tags” value=“1” /> <label for=“…”>tag 1</label>
<input type=“checkbox” name=“tags” value=“2” /> <label for=“…”>tag 2</label>
<input type=“checkbox” name=“tags” value=“3” /> <label for=“…”>tag 3</label>
jamus
5
Thanks guys! I’ll give that a try!
jamus
6
Works a treat. Thank you both of you.
Is it the GET that reveals the values in the URL?
Yes. POST doesn’t show in the url.