Capturing Windows Login Name



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
.



Relevant Pages

  • Re: Capturing Windows Login Name Using Ldap
    ... I need to capture Windows login name when users on my Intranet open up ... I am using apache 2.2.6 and php 5.2.5 on Windows 2003 Server. ... in your Web server for the pages you want to capture the Windows user. ...
    (comp.lang.php)
  • Re: Capturing Windows Login Name Using Ldap
    ... I need to capture Windows login name when users on my Intranet open up ... I am using apache 2.2.6 and php 5.2.5 on Windows 2003 Server. ... in your Web server for the pages you want to capture the Windows user. ...
    (comp.lang.php)
  • Re: Get Windows login
    ... I was given a task to develop a php based application. ... windows login, but my atempts to find an apropriate function were ... available on Windows platform. ... company does use Active Directory, but I had no idea what PHP LDAP ...
    (comp.lang.php)
  • Get Windows login
    ... I was given a task to develop a php based application. ... windows login, but my atempts to find an apropriate function were ... available on Windows platform. ...
    (comp.lang.php)
  • Get Windows login
    ... I was given a task to develop a php based application. ... windows login, but my atempts to find an apropriate function were ... available on Windows platform. ...
    (comp.lang.php)