troubleshooting Question

Multiple select in drop down box in classic ASP

Avatar of CochiseCounty
CochiseCountyFlag for United States of America asked on
ASP
3 Comments1 Solution5644 ViewsLast Modified:
I have a drop down list in classic ASP, I would like to set it to allow multiple selection, and for each selection, enter a record into the sql database, I know how to do it in ASP.net, but now classic ASP. Please help. Thanks

<select size="1" name="dropEmpl" size="20" tabindex="1" style="font-family: Verdana; font-size: 8pt; color: #000080"></p>
           <%
            Do while not rstEMPL.EOF
            If rstEMPL("Last_First_M_Name") = Request.Form("dropEmpl") then
            %>
        <option value ="<%=rstEMPL("Last_First_M_Name")%>" selected><%=rstEMPL("Last_First_M_Name")%></option>
        <%
        Else
        %>
        <option value ="<%=rstEMPL("Last_First_M_Name")%>"><%=rstEMPL("Last_First_M_Name")%></option>
        <%
        End If
        rstEMPL.MoveNext
        Loop
        %>
  </select>
ASKER CERTIFIED SOLUTION
Big Monty
Web Ninja at large

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros