[Javascript] getenv=("USERNAME")

Peter-Paul Koch pp.koch at gmail.com
Sun Oct 10 14:58:36 CDT 2004


> At bootup, my Intranet workstations %USERNAME% variable got assigned to
> user's account name i.e. ScottHam, and I would like for my web site to
> acquire %USERNAME% into php's variable $USERNAME, how do I get around to it
> using JavaScript?  The plan here is to acquire %USERNAME%, look up in
> NTLogon database, acquire the full name then return with greeting on the web
> using php.  If you got another way using JavaScript to acquire SQL result,
> then I'm open ears.

This is not possible in JavaScript. JavaScript can't read out system variables. 

Posting an SQL query is possible, but it would require an intermediary
server side page which the script opens and passes its query to.

-- 
-------------------------------------------------------------------
ppk, freelance web developer
Interactie, copywriting, JavaScript, integratie
http://www.quirksmode.org/ 
------------------------------------------------------------------



More information about the Javascript mailing list