html - asp classic and select tag with multiple attribute -
i using select tag of html , having multiple attribute. , fetching of selected option select tag using asp classic. getting 500 internal server error.
<% response.write(request("evtcategory").count) response.write(request("evtcategory")) %> <form id="frmsearch" method="post" > <select name="evtcategory" multiple> <option value="0">--select category--</option> <option value="1">first</option> <option value="2">second</option> <option value="3">third</option> <option value="4">fourth</option> <option value="5">fifth</option> </select> <input type="submit" value="search" /> </form>
i don't think count exists in classic asp, looks asp.net code.
multiple selected values returned comma separated string.
you can use split selected values array.
dim values, values = split(request.form("evtcategory"), ",") = 0 ubound(values) response.write("value " & & " = " & values(i) & "<br />") next
Comments
Post a Comment