You are here: Capturing Windows Login Name « PHP Programming Language « IT news, forums, messages
Capturing Windows Login Name

Posted by K. A. on 02/02/08 09:25

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация