I have a form that has checkboxes and two date input boxes that are generated as the result of a query. So each row of a table has a checkbox, and event name, and a start and end date.
A problem that I am having is that the date input boxes are pre-filled with dates. The user can leave the dates as-is, or change them. When the user selects a checkbox, I only want to see the corresponding dates for that row. However, since all the dates for each row are pre-filled, the _POST array for StartDate[] and EndDate[] gives me all the dates.
How do I limit the date arrays based on the checkbox array (id[])?
TIA.