all the selected items form a collection.
you access these items as follows:
which will give you the second selected item.Code:myString = Request.form("listname")(2)
Here's a little code which will populate an array with all the selected items in a list:
you can then loop through this array to get all the selected items.Code:<% Dim arrayOptions() intCount = 0 For Each SubKey in Request.form("list1") ReDim Preserve arrayOptions(intCount + 1) intCount = intCount + 1 arrayOptions(intCount) = Request.form("list1")(intCount) Next %>
Hope this helps!!
dvst8




Reply With Quote