Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Intranet Web Form Question

Status
Not open for further replies.

elvanace

IS-IT--Management
Sep 26, 2002
23
US
I have a intranet web form created in FrontPage. I would like to prepopulate a field on the form with the visitors email address. Is there a way to do that?
 
Only if you know their email address.
In which case, set the value attribute of the email field.

Now, I'm guessing you don't know their email address but since you are on an intranet it's possible you could create a list of IP addresses against email addresses and use this. This method assumes that all users only ever use their machine to access the intranet and they have fixed IP's.

Assuming you can do the above then you will need some way to look up the email from the list based on the IP of the machine. To do this I'm not sure you can use Javascript and at best I think it would be a makeshift solution. A server side language would be better for this.

Finally, since you're using Frontpage I think the easiest assumption to make is that "no, you won't be able to do this".

--
Tek-Tips Forums is Member Supported. Click Here to donate

<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.


 
I was afraid that would be the answer, but thanks for the info. I appreciate it!
 
Maybe you have the user logged at the intranet and you can get the email using the username ...

Cheers,
Dian
 
How are the users logging in? Since this is posted in the JavaScript forum, I am thinking perhaps store the email address as a cookie and then grab the value from the cookie when you want to populate the form.
 
The users have to authenticate against their record in active directly. I'm sure the login id is out there. I just don't know how to grab it, but that could meet my needs. How would I do drop that value into a form field instead of the e-mail address?
 
I think that extends past the JavaScript forum abilities. I would try another forum for that.
 
Active Directory ;-)




--
Tek-Tips Forums is Member Supported. Click Here to donate

<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top