VB-Mike
Aug 17th, 2000, 07:47 AM
Anyone have any ideas how to pass the selected items from a multi-select box to a new page. I am presently doing it with several text boxes with the querystring option but the multi-select box does not want to go.
dvst8
Aug 17th, 2000, 12:16 PM
to have a multi-select box on a page do
<select name="whatever" multiple>
<option value="1">first choice</option>
<option value="2">second choice</option>
<option value="3">third choice</option>
<option value="4">fourth choice</option>
</select>
then on your handling page, the way (or A way) you get at all the selected values is:
myString = Request.Form("whatever")
myArray = Split(myString, ", ", -1, 1)
for i = LBound(myArray) to UBound(myArray)
Response.Write myArray(i) & "<br>"
next
the split command will split a string into an array, here splitting on the ", "
hope this helps, and good luck
dvst8