473,378 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Form data - drop down values/display option

I have a drop down box where the choices are populated from a database
query, this part works fine:
<option value><% = strEmail %></option>

I was wondering if it is possible to keep the value as strEmail, but make
the display Last_name, First_name. So when a user looks at the list, they
will just see the names, but when the form is submitted, the actual email
address associated with the name is passed along.

Long story short, there is probably a better way to do what I am trying to
do, but I was hoping for a nice simple solution to this problem! :)

TIA
Jul 19 '05 #1
2 3006
<option value="<%=strEmail%>"><%=strLName & ", " & strFName%></option>

"Tom Petersen" <pe****@sdsd.sdbor.edu> wrote in message
news:uX**************@tk2msftngp13.phx.gbl...
I have a drop down box where the choices are populated from a database
query, this part works fine:
<option value><% = strEmail %></option>

I was wondering if it is possible to keep the value as strEmail, but make
the display Last_name, First_name. So when a user looks at the list, they
will just see the names, but when the form is submitted, the actual email
address associated with the name is passed along.

Long story short, there is probably a better way to do what I am trying to
do, but I was hoping for a nice simple solution to this problem! :)

TIA

Jul 19 '05 #2
Thanks!

That is exactly what I wanted!!!

"TomB" <sh*****@hotmail.com> wrote in message
news:#8**************@tk2msftngp13.phx.gbl...
<option value="<%=strEmail%>"><%=strLName & ", " & strFName%></option>

"Tom Petersen" <pe****@sdsd.sdbor.edu> wrote in message
news:uX**************@tk2msftngp13.phx.gbl...
I have a drop down box where the choices are populated from a database
query, this part works fine:
<option value><% = strEmail %></option>

I was wondering if it is possible to keep the value as strEmail, but make the display Last_name, First_name. So when a user looks at the list, they will just see the names, but when the form is submitted, the actual email address associated with the name is passed along.

Long story short, there is probably a better way to do what I am trying to do, but I was hoping for a nice simple solution to this problem! :)

TIA


Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Nanos | last post by:
Hi all, For the form I need to create drop down select with different options (dynamicly from DB). That's easy in PHP. But there also should be the possibility to enter own option if one is not...
1
by: Cleus | last post by:
Is there a way to display read only values in a drop down listbox? Below is an example of what I need displayed in the drop down list. The users should only be able to select Item 1-9. Category A-C...
1
by: robertrozarioa | last post by:
Hi , I am new to ACCESS.please help me out. I am designing a database.I have 3 tables, and have 3 forms based to collect data. 1. Individual ( fields are Name, Email, Status) Status is a...
2
by: rishu banerjee | last post by:
hi all. I'm new to ASP. can anyone help me in getting values of a drop down to be displayed in a textarea.say if we have the drop down elements as color, flower,..etc. as we select color, it should...
1
by: Bobc003 | last post by:
Hi, I'd like to put a double drop-down menu on my webpage and instead of a redirection to a new webpage, I'd like to display the result in a new section. I'm kind of stuck and I only have a triple...
1
by: metalaniac | last post by:
Hi there I am searching for a method of displaying an extra form field, only when a certain option is selected in a drop down box. <label for="staff_status">Status: </label> <select...
10
by: darkenroyce | last post by:
Hi Guys I am creating a sports database and one of the features involves create drop down dialogue boxes that retrieve data from MySQL tables and provides them as <option> within...
6
by: Palehorse | last post by:
I'd like to apologize upfront for me saying "I'm not a programer", I'm sure you all hear this a hundred times a day. Unfortunately, in this case, it's true. I've been working on trying to figure out...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.