Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2002
    Location
    Washington State
    Posts
    98
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Getting the pages current address or "link"...

    I have built a visitor counter/log script and I am wanting to append to a textfile the page that the visitor is on everytime the visitor visits a page. This will provide me with a big list of different pages which I can sort and figure out where my visitors are spending their time. So...

    I am wondering how I can put the pages current address into a variable. I couldn't find a server variable that did this so I am asking you guys. I would really appreciate any ideas on how to get the current address using some form of ASP script/request, etc. Thanks for your time.
    ~ Isaac Lloyd ~
    Website Design & Development
    http://www.IsaacLloyd.com

  • #2
    Regular Coder
    Join Date
    Jul 2002
    Location
    The sunny side of the Alps
    Posts
    230
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I use this function to extract file name of a current page
    Code:
    Function WebpageFile()
       sURL1 = Request.ServerVariables("URL")
       sURL_s = Split(sURL1,"/")
    		
      WebpageFile= sURL_s(Ubound(sURL_s))
    End Function


  •  

    Posting Permissions

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