What Code (Javascript, PHP, ASP?) would I need to be able to get the user agent and display in. In Cpanel "Latist visitors" it shows: But the only code I know says just simple So how can I get the indepth infomation?
In PHP it's easy... it's a super global variable... $_SERVER['HTTP_USER_AGENT'] PHP: To define the variable agent with the user agent, it's like so in JavaScript: var agent=navigator.userAgent Code (markup):
Also, I *think* (not 100% sure though) in ASP it's: request.servervariables("http_user_agent") Code (markup):
It is, however, only VB is case-insensitive. If you use any other language (JavaScript, C#, etc), you have to write Request.ServerVariables("HTTP_USER_AGENT") J.D.
In Javascript you can use: document.write(navigator.userAgent) also: document.write(navigator.appName) document.write(navigator.appVersion) document.write(navigator.platform) document.write(document.lastModified)