Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Passing multiple values using a drop down list

Posted on 1999-07-15
2
Medium Priority
?
182 Views
Last Modified: 2013-12-25
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
0
Comment
Question by:Jasson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
mkill22 earned 150 total points
ID: 1864101
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.

ie:

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


0
 

Author Comment

by:Jasson
ID: 1864102
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.
0

Featured Post

Plesk WordPress Toolkit

Plesk's WordPress Toolkit allows server administrators, resellers and customers to manage their WordPress instances, enabling a variety of development workflows for WordPress admins of all skill levels, from beginners to pros.

See why 2/3 of Plesk servers use it.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question