I have a form that enters inventory values based on date. Each day has a certain inventory value. Some days of the month have the same inventory values. I have 31 checkboxes, one for each day of the month and the inventory value form field.
I enter the inventory value and then check the days that the inventory value applies to.
When inserting the data into the mysql database, I would like to loop through the days and if a day is checked, then I run the mysql query to insert the data.
How do I convert all the checkboxes into an array or is there a better way to do it?