glennda Posted November 28, 2010 Posted November 28, 2010 is there a way either using javascript or similar to read the username of the person logged in and submit with a form. a bit of background info - i am currently setting up a intranet and one thing i want is to be able to create a submitting form for it helpdesk from the site. but to stop stupid annomous emails i would like to be able to get the username of the person logged in and get it submitting with the form automatically. - the submitting part uses php which wouldn't be able to pull the user i don't think as its server side? although i might be wrong Thanks Toby
webman Posted November 28, 2010 Posted November 28, 2010 Not natively with Javascript. If the web server is IIS and the browser is IE, then you should be able to use the LOGON_USER environment variable from ASP/PHP scripts. Otherwise, you may struggle. The NTLM auth module for Apache is a bit hit-and-miss.
glennda Posted November 29, 2010 Author Posted November 29, 2010 Ahhh shame - wont be doing that then!!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now