Beginner - multidimensional array

# Thread: Beginner - multidimensional array

1. Junior Member
Join Date
Dec 1969
Posts
5

## Beginner - multidimensional array

I&#039;ve set up a form that pulls employee names from a database and puts them in a table and adds a checkbox:<BR> Dim arrEmp(20)<BR> i = 0<BR> Do While NOT oRS.EOF<BR> Response.Write "&#060;TR&#062;"<BR> arrEmp(i) = oRS("Emp")<BR> Response.Write "&#060;TD&#062;&#060;input type &#039;checkbox&#039; name=&#039;arrEmp(i)&#039; value = &#039;1&#039;&#062;&#060;/TD&#062;<BR> Response.Write "&#060;TD&#062;" & UCase(oRS("Emp")) & "&#060;/TD&#062;&#060;/TR&#062;"<BR> i = i + 1<BR> oRS.MoveNext<BR>Loop<BR><BR>I need to pass the array and values to the next page to perform the updates. I&#039;ve used the following to set the String, but how do I get the values?<BR><BR>Dim iLoop, strEmp<BR>For iLoop = LBound(arrEMP) to UBound(arrEMP)<BR> strEmp = strEmp & "Emp=" & arrEmp(iLoop)<BR> strEmp = strEmp & "&"<BR>Next<BR><BR>For iLoop = LBound(arrEMP) to UBound(arrEMP)%&#062;<BR> &#060;INPUT TYPE="HIDDEN" NAME="EMPS" VALUE="&#060;%=arrEmp(iLoop)%&#062;"&#062;<BR>&#06 0;%Next%&#062;<BR> <BR>

2. Senior Member
Join Date
Dec 1969
Posts
2,958

## RE: Beginner - multidimensional array

The FAQ&#039;s above are great for this type of question.<BR><BR>http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=63

3. Junior Member
Join Date
Dec 1969
Posts
5

## RE: Beginner - multidimensional array

Thanks Doug, that did help some, but what I&#039;m trying to do is tell if a Checkbox is checked or not. I used a different article to get the variables to pass to an "action" page, but I can&#039;t seem to pull the data for checkboxes. I used the following article link: http://www.4guysfromrolla.com/ASPscripts/PrintPage.asp?REF=/webtech/100199-2.2.shtml

4. Senior Member
Join Date
Dec 1969
Posts
96,118

## Another ASPFAQ...

http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=141<BR><BR>HINT: You can *NOT* "see" an unchecked checkbox on the next page! <BR><BR>

5. Junior Member
Join Date
Dec 1969
Posts
5

## RE: Another ASPFAQ...

This is just what I needed!<BR>Thanks so much for your help!

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•