i have a form, wrote in a page template:
<form enctype="multipart/form-data" method="post" action="merci">`
[... some inputs of different types: text, password, file ...]
<input type="checkbox" name="themes" value="$taxonomy_term_id"/>
<label for="themes" > $term_name </label>
<input type="checkbox" name="themes" value="$taxonomy_term_id2"/>
<label for="themes" > $term_name2 </label>
[...]
<input type="submit" />
</form>
The form is working good, but when i check some checkbox, after submitting, i got error 404 page not found ( the action page “merci” ). If no checkbox are checked, all work and i redirect to the “merci” page.
Any clue?
You have two checkboxes with the same
name=attribute. Give them unique names.