I have a form like this
<form action=''>
<label for="carrot">Carrot Collection</label><input type="checkbox" id="carrot" name="skills" value="carrot"><br>
<label for="potato">Potato Collection</label><input type="checkbox" id="potato" name="skills" value="potato"><br>
<button type='submit'>Neu Laden</button><br>
When I press the Button i currently get:
foo.bar/test.html?skills=carrot&skills=potato
Is there an easy way to achieve something like foo.bar/test.html?skills=carrot,potato
There will be an awful lot of Checkboxes and it would be quite a pain to query all of them to build the Request string.
Aucun commentaire:
Enregistrer un commentaire