...
How can I remove the domain name and the \ from
request.servervariables("LOGON_USER") ?
Remove everything up to, and include the \ ...
Perhaps;
<%
Dim aName
Dim strName
' create an array by splitting variable by the \
aName = Split(Request.ServerVariables("LOGON_USER"), "\")
' populate variable
strName = aName(UBound(aName))
' clear down
aName Erase
' display to screen
Response.Write strName
%>
Assumptions are that you have actually returned something in that server
variable - if not it'll error - you'll need to put some additional checks
around this perhaps.
Hope this helps,
Regards
Rob