programming-examples/asp/More_Code_Snippets/Populate a combo box from an array.asp

11 lines
216 B
Plaintext
Raw Permalink Normal View History

2019-11-18 14:25:58 +01:00
<%
dropdown = "example1,example2,example3,example4"
%>
<Select Name="drop">
<%
list = Split(dropdown, ",")
For i = 0 to UBound(list)
%>
<option value="<%=list(i)%>"><%=list(i)%>
<%Next%>
</Select>