Having some problems with the Logon_User. I can display the users logon on the page. What I am really after is a situation where the username is passed into a dll and then taken out of the format of domain\Hebiebug. It will then become HebieBug. It also passes the username into another dll so that the dll can run a SQL Query based on the username. So I started by seeing if I could get the username into a variable the code that I came up with was
<SCRIPT LANGUAGE=VBSCRIPT>
sub clicked
dim peter
peter = Request.ServerVariables("LOGON_USER"
msgbox peter
end sub
</SCRIPT>
Unfortunatly the books don't cover this area and I think it might have something to do with the security side of things. Could someone confirm this or come up with the correct code?
<SCRIPT LANGUAGE=VBSCRIPT>
sub clicked
dim peter
peter = Request.ServerVariables("LOGON_USER"
msgbox peter
end sub
</SCRIPT>
Unfortunatly the books don't cover this area and I think it might have something to do with the security side of things. Could someone confirm this or come up with the correct code?