How do you find out how many checkboxes have been checked for given Question? For example, you have question called "Hobbies:"with checkbox options of Reading, Biking, Travelling., I want get the count of the hobbies.
Shaswat
0
Newbie Poster
Recommended Answers
Jump to PostAssuming you are using PHP to process your form, when you create your form
give all your checkboxes the same name BUT add the following suffix "[]" -ex:<form method="post" ...> <input type="checkbox" name="hobbies[]" value="Reading"/> <input type="checkbox" name="hobbies[]" value="Biking"/> <input type="checkbox" name="hobbies[]" value="Traveling"/> ... </form>
Then when …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.