+ Post New Thread
Results 1 to 2 of 2
Scripts Thread, user logged in in Coding and Web Development; W2k3 server ; redirected desktop I am putting together a script to send an email from the desktop. I have ...
  1. #1

    Join Date
    May 2008
    Location
    Kent
    Posts
    94
    Thank Post
    57
    Thanked 10 Times in 10 Posts
    Rep Power
    14

    user logged in

    W2k3 server ; redirected desktop
    I am putting together a script to send an email from the desktop. I have a link which opens a PHP web page on a web server. The user just types in a message and clicks "Submit".
    Is there a way to find out the user that is logged in and place the name in my web page?
    TIA

  2. #2
    Arcath's Avatar
    Join Date
    Feb 2009
    Location
    Lancashire
    Posts
    972
    Thank Post
    102
    Thanked 116 Times in 101 Posts
    Rep Power
    74
    Im not aware of any way to get PHP to pick up on the currently logged in user.

    not sure if theres a better way, or if you can put the current user into the desktop, you might have to make a script to make the shortcut that make it go to:

    form.php?user=<<USER>>

    you could even add "&pc=<<pc>>"

    to make it put the PC in aswell.

    the two values would then be passed as $_GET values

  3. Thanks to Arcath from:

    firefighting (12th February 2009)

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 14
    Last Post: 26th November 2008, 10:10 AM
  2. Replies: 5
    Last Post: 29th September 2008, 07:16 PM
  3. automatic VNC to PC a user is logged onto
    By ChrisP in forum How do you do....it?
    Replies: 2
    Last Post: 7th December 2007, 04:23 PM
  4. Replies: 5
    Last Post: 21st February 2007, 04:40 PM
  5. Who last logged on
    By danIT in forum Windows
    Replies: 1
    Last Post: 2nd October 2006, 09:08 AM

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
  •