Getting Multiple Values From A Select

Reply

Join Date: Jul 2005
Posts: 188
Reputation: aparnesh is an unknown quantity at this point 
Solved Threads: 10
aparnesh's Avatar
aparnesh aparnesh is offline Offline
Junior Poster

Getting Multiple Values From A Select

 
0
  #1
Dec 28th, 2006
I have a Select in a form, which has multiple values. How can I get all the values from the Request Form collection ? I am using the post method. When I am specifying

  1. Response.write Request.Form("Select1")

it only shows the last value.

I have tried using Request.Form("Select1").options[x] as a loop but it gives an error saying
Object doesn't support this property or method 'options'

Thanks
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 79
Reputation: nikkiH is an unknown quantity at this point 
Solved Threads: 4
nikkiH's Avatar
nikkiH nikkiH is offline Offline
Junior Poster in Training

Re: Getting Multiple Values From A Select

 
0
  #2
Dec 28th, 2006
Google is your friend. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
Bored? Visit http://www.kaelisspace.com/
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 188
Reputation: aparnesh is an unknown quantity at this point 
Solved Threads: 10
aparnesh's Avatar
aparnesh aparnesh is offline Offline
Junior Poster

Re: Getting Multiple Values From A Select

 
0
  #3
Dec 29th, 2006
Thanks nikkiH, I tried it out and it works fine. Thanks again

aparnesh
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC