Solved

Auto Fill Field

Posted on 2004-04-07
8
279 Views
Last Modified: 2010-04-25
I have a form that requires the user to input their name and e-mail address as well as other fileds. I already have all the users information in a databse. Is it possible that once a user locates their name(drop down list) , the e-mail address automatically fills in. ?

0
Comment
Question by:jkatz2
  • 4
  • 3
8 Comments
 
LVL 35

Expert Comment

by:mrichmon
ID: 10779046
Sure.

You can do this by either having all of the information in a javascript array and then whent hey change the select box it finds the corresponding email and fills it in.

Or if there are too many users to be unmanageable and you have access to a server side language then you can use an iFrame to do a background submit to the database to look them up and then return the info to javascript which then updates the page.
0
 
LVL 20

Expert Comment

by:trailblazzyr55
ID: 10782332
Are you using coldfusion?
0
 

Author Comment

by:jkatz2
ID: 10783509
IIS
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 35

Expert Comment

by:mrichmon
ID: 10784221
IIS is not an answer because IIS is a web server not a server side language.

What language are you coding in ?  Choices are things like ASP, PHP, Cold Fusion, etc.

If you don't know, look at the file extension is it .cfm? .asp? .php?

If you still can't tell then post some code that DW wrote for you.
0
 

Author Comment

by:jkatz2
ID: 10784685
Sorry about that I thought you were asking about that server.

ASP
0
 
LVL 35

Expert Comment

by:mrichmon
ID: 10793321
Well would you prefer the Javascript option or the iframe option?

Note that the ifram option still requires javascript to be enabled, but depending on the size of your database can make the javascript source code smaller.
0
 

Author Comment

by:jkatz2
ID: 11098888
Sorry been away for awhile. The Iframe option seems to be the best for my situation.
0
 
LVL 35

Accepted Solution

by:
mrichmon earned 50 total points
ID: 11098973
Here is a link to the code that I provided for another person here :
http:Q_20936125.html
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
website template 12 336
Create recordset using Dreamweaver PHP and MS SQL 2008 4 549
installing adobe creative cloud offline 4 5,899
With Dreamweaver, creating a dropdown menu system 5 104
I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

778 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