programming-examples/asp/More_Code_Snippets/Populate a combo box from an array.asp
2019-11-18 14:25:58 +01:00

11 lines
216 B
Plaintext

<%
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>