> I have a form in which I am collecting multiple input from the user, > for example for each day of the week I am collecting opening hour and > closing hour something in the format of > day - checkbox - select/option - select/option , I want to do this in a > loop for all 7 days of the week. I couldn't find any good examples or > tutorials for this. Please let me know the right way of doing this or any > sample would be greatly appreciated!
JMO, but since this is a fixed number of form fields, I wouldn't try to do a loop to present them, just name them 'monday' 'mondayOpen' and 'mondayClose', etc. Only the successful (checked) checkboxes will be present in the request, so you can check for the existence of each one, and if it's there, then go look for the open/close fields. I'm sure it could be done more elegantly, but I think you might be making it more complicated than it has to be. Loops are good when you have no idea how many rows you'll need to present, or if there are many items. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management

