Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I Loop thru Select List

Status
Not open for further replies.

Lenvdb

Programmer
Jun 21, 2002
81
GB
Heya all!
I need to read ALL the option items (values) in the select options list and create a comma delimited string, which I pass on to a SQL query.
I need to do this in serversided VBscript.

The query must then get results from the SQL database and I create a new page on which the results are displayed.

How would I do this? I cannot access the Select box using the Document.myForm.myList way and need some direction.

Your help will be valued with a good Helpful tip check...

Thanks

Len
 
Hi ...
OK ... what is in your select and option tags ?
do you generate the options yourself ?
and if not, how do you generate the otions and their vaues ?
i mean, while creating the options, you can creat a hidden input and insert the value of the options in to it by seperating them by comma.

if this doesn't eorkout, can you post your code here for us to take a look at ?
----
TNX.
E.T.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top