Apr 2, 2002 #1 Michael42 Programmer Oct 8, 2001 1,454 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
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
Apr 2, 2002 #2 link9 Programmer Nov 28, 2000 3,387 US 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 Upvote 0 Downvote
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
Apr 3, 2002 Thread starter #3 Michael42 Programmer Oct 8, 2001 1,454 US This is perfect. Thanks very much! Upvote 0 Downvote