Forum Moderators: coopster
I have a couple of checkboxes and users can select all the apply. I am trying to think what the best way is to insert the data into the database. Should I give each checkbox a different name (vote1, vote2, vote3) and have three columns in the database table for each of them?
I need to use the data entered into the database to count up how many people selected apple, how many selected banana, and how many selected orange. Any suggestions would have appreciated.
<input type="checkbox" name="vote1" value="apple">Apple
<input type="checkbox" name="vote2" value="banana">Banana
<input type="checkbox" name="vote3" value="orange">Orange
<INPUT name="submit" type="submit" value="submit">