Manipulating LOGON_USER

Results 1 to 2 of 2

Thread: Manipulating LOGON_USER

  1. #1
    Join Date
    Dec 1969

    Default Manipulating LOGON_USER

    Hi,<BR><BR>I&#039;m having users log onto a website using the NT logon method.<BR><BR>I want a script to catch the LOGON_USER variable then do the following:<BR><BR>"LOGON_USER" = robert.hedley<BR><BR>Strip out the . and replace it with a space then capitalise the first character of each section.<BR><BR>So robert.hedley becomes Robert Hedley<BR><BR>How could I do that?<BR><BR>Many thanks,<BR><BR><BR>Robert

  2. #2
    Join Date
    Dec 1969

    Default RE: Manipulating LOGON_USER

    This didn&#039;t make sense.<BR><BR>VARIABLE = value or variable<BR>"LOGON_USER" is a VALUE (string), not a variable.<BR><BR>You could do this, as I assume your talking about Request.ServerVariables("LOGON_USER")<BR>LOGON_USE R = Replace(Request.ServerVariables("LOGON_USER"),".", " ")<BR><BR><BR>Don&#039;t know if it will do much though... Depends on the rest of your code.<BR><BR><BR>- jørn

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts