• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 183
  • Last Modified:

Passing multiple values using a drop down list

Pretty self explanatory. Want to pass more than one value using a drop down list.

eg. Client chooses Jo Blo from list and both Jo Blo's name and age will be passed to the ASP.

Thanks in advance
1 Solution
The easiest way is to do this:

<option value="age_value|name_value">name_value

then on the page that processes the form simply split the form item value to get the reuslts.


<%on error resume next
namearray = split(request.form("name"), "|")
Age = namearray(0)
Name = namearray(1)

JassonAuthor Commented:
To be honest with you mkill22 I had thought of that myself. I had hoped for an htm solution but if this is absolutely the only way to do it then so be it.

Thanks very much.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now