Results 1 to 3 of 3

Thread: Username

  1. #1
    Join Date
    Jan 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Username

    Hi maybe you can help, been coming back and form from this site when ever I've been stuck with anything, but cant find anything on this so far.

    I want my web page to show the NT Login name the person is currently on, I know its possible as one of the works web pages does it but it doesn't show me the code on how it does it.

    so if its possible can someone let me know how this cool little code is done, I think it be java script but maybe not.

    Thank for any help

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Well, for starters I will tell you no, and don't do it. That would be personal information and not smiled upon.

    Second you could only do it through .asp, and it would only work on those using Windows NT or later. Excluding Vista.

    You could also just about only do it on an intranet, or work LAN (which is why you saw it at work).

    Code:
    '| ASP example.
    Dim strLogon
    strLogon = Request.ServerVariables("LOGON_USER")
    Not that that works anymore, I had to google it for an example.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Jan 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Cheers Ill give it a try it for work use only m8, only do off line pages, and just wanted this code for a welcome page.

Bookmarks

Posting Permissions

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