Here is what I have as a demo…
<form id="changeInterests" action="" method="post">
<label><input id="interest_01" name="interest" type="checkbox" value="Football"> Football</label><br/>
<label><input id="interest_02" name="interest" type="checkbox" value="Basketball"> Basketball</label><br/>
<label><input id="interest_03" name="interest" type="checkbox" value="Baseball"> Baseball</label><br/>
<!-- Submit Form -->
<input type="submit" name="changeInterests" class="button" value="Change Interests"/>
<input type="reset" name="changeInterests" class="button" id="reset" value="Cancel" />
The solution I am working towards would be database driven and dynamic using arrays.
So you are saying I need to go in and somehow check that every checkbox has a valid value?
What I am confused about is that I don’t see where you would be displaying data validation errors to the end user like a regular form.
On my normal forms, I will display an error message in red if you enter a wrong value in a Textbox, for instance.
This script I am working on is just going to be a page of maybe 100 hobbies, where the user chooses their Top-5 Favorite Hobbies.
To me there doesn’t seem to be much to check, but then I have never used Checkboxes before, so I feel uncomfortable with this entire last-minute request…