PDA

Click to See Complete Forum and Search --> : I bet no one can answer this one!


Mark Sreeves
May 3rd, 2000, 04:11 PM
Sorry about the subject but at least you read it! ;)


my ASP loads a dynamic array of checkboxes for the user to make selections

How do I post these to another page to test for value so I can update my database?

lychew
May 3rd, 2000, 04:33 PM
By saying it is an array of checkboxes, i'm assuming your checkboxes are having name such as check1,check2,...
Then you'll need to post the number of checkboxes to the next page. This won't be too hard and there's a few ways to do it. I guess you are capable of doing that.

At the next page, just do a for statement to browse thru all the request.form("check" & i to request.form("NumOfCheck")).

Alternately you can store all your checkboxes name in a session array and do a ubound to find the number of checkboxes in the session array. But this is not recommended cause this will take up a lot of memory.

Mark Sreeves
May 3rd, 2000, 04:37 PM
okey dokey lychew!

Thanks