function GetComputerName()
{
try
{
var network = new ActiveXObject('WScript.Network');
alert(network.computerName);
}
catch (e) { }
}
This is javascript that will work in IE, sometimes. That's the best you can do. You can then push that value in to a control and then when the user posts to the server, you can read it in PHP. PHP can't do what you want because it runs on the server, not the client, so it can't look up client data.