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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving Multi-Select Values

Status
Not open for further replies.

Michael42

Programmer
Joined
Oct 8, 2001
Messages
1,454
Location
US
Hello,

Can anyone give me an exmple of how to retrieve the values of a multi-select combo from a form?

Copying each to an array would be ideal.


Thanks for your advice,

Michael
 
When a multiple select box value is sent, it comes as a comma separated list, so:

1,2,3,4,5, etc...

each being one that a user has chosen, leaving out the ones that they didn't.

so:

dim multipleValues, myArray
multipleValues = request.form("multipleSelectBoxName")
myArray = split(multipleValues,",")

would stick them all into a nice neat array.

:-)
paul
penny1.gif
penny1.gif
 
This is perfect. Thanks very much!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top