I have created an asp page in dreamweaver using jscript that dynamically creats checkboxes from an access db table. Each checkbox has a unique name and a unique value. The names are always in a series and are named "cb1" through "cb20" and the values come from a corresponding db table. I have set up the form to post the information to a second verification asp page that passes the checkbox values via a querystring. The second asp page uses the cbX values to look up and display information. Up to this point all works great.
On the second page, I have created an "insert" server behavior which will post the cbX value(s) to a table where I have created a variable which can be incremented and stepped through via a loop. If I manually set my counter to a specified value it works fine but when I try to modify the server behavior to loop through the process (ie increment the counter and write the next checkbox value) I either end up in an infinite loop or it only writes the first checkbox value selected. I need some help on setting up a valid loop and just can't seem to figure this out. Where in the server behavior should I put my increment and looping functions? Any help would be greatly appreciated as I am working on a short timeline.
On the second page, I have created an "insert" server behavior which will post the cbX value(s) to a table where I have created a variable which can be incremented and stepped through via a loop. If I manually set my counter to a specified value it works fine but when I try to modify the server behavior to loop through the process (ie increment the counter and write the next checkbox value) I either end up in an infinite loop or it only writes the first checkbox value selected. I need some help on setting up a valid loop and just can't seem to figure this out. Where in the server behavior should I put my increment and looping functions? Any help would be greatly appreciated as I am working on a short timeline.