473,671 Members | 2,473 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3015
<option value="<%=strEm ail%>"><%=strLN ame & ", " & strFName%></option>

"Tom Petersen" <pe****@sdsd.sd bor.edu> wrote in message
news:uX******** ******@tk2msftn gp13.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*****@hotmai l.com> wrote in message
news:#8******** ******@tk2msftn gp13.phx.gbl...
<option value="<%=strEm ail%>"><%=strLN ame & ", " & strFName%></option>

"Tom Petersen" <pe****@sdsd.sd bor.edu> wrote in message
news:uX******** ******@tk2msftn gp13.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
11311
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 listed. Is there a way to do it. Did anyone come accross of any tool/script? Thank you in advance for any hint, emanuel
1
1432
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 are just for display/clarification purposes. Category A Item 1 Item 2 Item 3 Category B
1
1984
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 drop down list having values P,PE,E
2
2323
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 display red,blue,green in the textarea below
1
2317
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 menu here. Here an exemple of what I need. (menu)Size, (menu) color and then display the price somewhere in a box. Thanks a bunch Bob
1
1992
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 id="staff_status" tabindex="7"> <option value="active" selected="selected">Active</option> <option value="pending">Pending</option> <option value="terminated">Terminated</option>
10
2710
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 <select></select>. I am using PHP for this and I'm fairly new at the programming language. I have got the dialogue to work with respect to retrieving the data from MySQL table but it only displays the data from first row/first column of the table twice. I want the...
6
4316
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 a particular problem I've had for years and now I find I need to get it situated as soon as possible. So I turn to you kind folks, the experts, to give me a little hand holding, guidance and wisdom as to how to accomplish what it is I'm trying to do....
0
8401
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8926
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8824
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8603
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8673
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6236
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5703
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4416
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.