Auto Fill Field

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. ?

jkatz2Asked:
Who is Participating?
 
mrichmonConnect With a Mentor Commented:
Here is a link to the code that I provided for another person here :
http:Q_20936125.html
0
 
mrichmonCommented:
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
 
trailblazzyr55Commented:
Are you using coldfusion?
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
jkatz2Author Commented:
IIS
0
 
mrichmonCommented:
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
 
jkatz2Author Commented:
Sorry about that I thought you were asking about that server.

ASP
0
 
mrichmonCommented:
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
 
jkatz2Author Commented:
Sorry been away for awhile. The Iframe option seems to be the best for my situation.
0
All Courses

From novice to tech pro — start learning today.