Hi .
I am trying to fetch the environment USERNAME and to put it into an SQL-database called LOG.
This is for logging all the Clicks in my Intranet.
If I put the code in the php-file at the server I only fetch the local user at the server (administrator).
I want to get the
lokal username.
I have tought about using cookies but i tought this was an easyer way to do it.
I want to send the username (incl time and date) of the person that did the click, not the adminuser at the server, to the SQL.
Therefor i tried to do something like this :
<script language="Javascript" src="
http://x.x.x.x:81/phptest.php?Name=$bruk"></script></p>
where Name is the name of the user (fetched from env USERNAME, AD-user or maybe a cookie).
I tryed to check var_dump, but locally i got nothing, but at the server php I only got the administrator.
Brgds Kristoffer