Capturing Windows Login Name
- From: "K. A." <ka5880@xxxxxxxxxxx>
- Date: Sat, 2 Feb 2008 01:25:45 -0800 (PST)
I know it is not possible to get Windows login name using PHP because
it is a server-side script, but I dunno whether anyone has tried using
JavaScript in conjuction with PHP to capture the login name and save
it as a php variable.
Here is the JScript I used to capture the windows login name:
<head>
<script language="JScript">
var strUsername;
var objNetwork;
objNetwork= new ActiveXObject("WScript.Network");
strUsername= objNetwork.Username;
strUsername= strUsername.toLowerCase();
document.write(strUsername); // prints the login name onto the screen.
</script>
</head>
But how can I take the "strUsername" from here and save it as a PHP
variable for later use?
Any ideas? Please let me know...
Khalid
.
- Follow-Ups:
- Re: Capturing Windows Login Name
- From: Manuel Lemos
- Re: Capturing Windows Login Name
- From: Álvaro G. Vicario
- Re: Capturing Windows Login Name
- From: Álvaro G. Vicario
- Re: Capturing Windows Login Name
- From: ashore
- Re: Capturing Windows Login Name
- Prev by Date: [newbie] Broadcasting?
- Next by Date: Re: $_GET works, $_POST doesn't
- Previous by thread: [newbie] Broadcasting?
- Next by thread: Re: Capturing Windows Login Name
- Index(es):
Relevant Pages
|