Jump to content

Recommended Posts

Posted

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

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...