Good evening. I am relatively new to programming and have spent untold hours trying to resolve by issue with checkboxes. What I am trying to figure out is how to code the following:
I want the user of my form to be able to select anywhere from 1 - 4 events and be able to store in a mysql database what those selections are. For instance, if event 1 is checked then store a 1, and if not then store a 0. I understand that this requires the use of a foreach loop, or something similar, but I can't seem to figure out how to implement it.
When I get to the point where I either have to edit the information or just approve the information prior to allowing it to be viewed on the website, I now need to be able to 're-check' the box on the form based upon how it was originally set by the customer. Again, I have a basic understanding of how to do this, but...
Somewhere out there in the ether there must exist a site that can help me understand how to accomplish these tasks. If you know of one, please let know the URL so I can learn and accomplish my goal.
Thanks for your help,
Dennis