posted 20 years ago
You cannot make this work if all the checkboxes have the same name. You'll need to follow some kind of standard naming convention, such as the name of the form, following by some integer i. This is how I usually code checkboxes when I don't know how many there will be (the code for the checkbox is within some loop which runs i times, and I name each checkbox FormName + i, so this way, when it comes to form submission, I can iterate through the checkboxes with a similar loop, checking which are set and which are not).
for (int i = today; i < endOfTime; i++) { code(); }