+ Post New Thread
Results 1 to 3 of 3
Web Development Thread, reading username for form in Coding and Web Development; is there a way either using javascript or similar to read the username of the person logged in and submit ...
  1. #1

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    Sussex
    Posts
    7,799
    Thank Post
    272
    Thanked 1,134 Times in 1,030 Posts
    Rep Power
    349

    reading username for form

    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

  2. #2

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,403
    Thank Post
    637
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    319
    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.

  3. #3

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    Sussex
    Posts
    7,799
    Thank Post
    272
    Thanked 1,134 Times in 1,030 Posts
    Rep Power
    349
    Ahhh shame - wont be doing that then!!

SHARE:
+ Post New Thread

Similar Threads

  1. Lexia Reading
    By bossman in forum Educational Software
    Replies: 20
    Last Post: 27th September 2010, 10:08 AM
  2. I am currently reading
    By mattx in forum General Chat
    Replies: 24
    Last Post: 28th May 2010, 08:11 PM
  3. VBA Code to copy all form updates to one form
    By acrobson in forum Coding
    Replies: 2
    Last Post: 27th January 2010, 07:04 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •