Multiple Drop Down Box

Results 1 to 2 of 2

Thread: Multiple Drop Down Box

  1. #1
    Join Date
    Dec 1969

    Default Multiple Drop Down Box

    Hi<BR><BR>I have an ASP form that has a multiple drop down box in it. This form, when submitted, pulls data back from a SQL Database. At the moment, my sting only works when I choose option from the drop down. How do I incorporate many selections into my SQL String?<BR><BR>Thanks

  2. #2
    Join Date
    Dec 1969

    Default RE: Multiple Drop Down Box

    i hope that u need to retreive values from the list box when it is multiple selected, is it?<BR><BR>if so then get the list box value as<BR>aspvar=trim(request.form("listbox"))<BR><BR> have a var that will hold all multiple values as an array as<BR>asparray=split(aspvar,",")<BR><BR>now u can retreive all values using a simple for loop as<BR>FOR i=0 TO UBOUND(asparray)<BR>response.write asparray(i)<BR>NEXT<BR><BR>did this solve it..<BR>feel free to get back

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts