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.
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?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.