Multiple selections from drop down list
Mar 1, 2018 11:10:29 GMT -5
Post by meerkat on Mar 1, 2018 11:10:29 GMT -5
How do you get multiple selections from a drop down list.
This program works find if you only select one item.
However holding the control key or shift key to select multiple items gives an error...
This program works find if you only select one item.
However holding the control key or shift key to select multiple items gives an error...
dim c$(10)
dim d$(10)
for i = 1 to 10
c$(i) = str$(i)
d$(i) = "show-->:";str$(i)
next i
html "<SELECT id='et' name='et' multiple size=5>"
for i = 1 to 10
html "<option value='";c$(i);"'>";d$(i);"</option>"
next i
html "</select>"
print
button #acd, "Search", [r]
print
wait
[r]
a$ = #request get$("et")
print "You Selected:";a$
wait