I'm thinking for a couple of days how to best insert multiple checkboxes in my database.
What I want to do is if an user selects an option, associated checkboxes are shown below the select.
For example:
- User selects option 1 -> Checkbox A, B and C appears
- User selects option 2 -> Checkbox D, E and F appears
My options come from 1 table and the checkboxes come from another table.
That already is working fine.
But how do I insert the chosen checkboxes (e.g. A and C) in my database that I am able to analyze the data from this specific submit (e.g. User has submitted the form -> Submit 1, Option 1 has been selected and only 75% of checkboxes have been checked; Checked boxes are A and C; Checkbox C was missing)
I hope I could explain it. I want to "simply" submit data to analyze it afterwards.