...

View Full Version : Getting the pages current address or "link"...



isaaclloyd
09-30-2005, 04:40 AM
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.

bostjank
09-30-2005, 06:58 AM
I use this function to extract file name of a current page


Function WebpageFile()
sURL1 = Request.ServerVariables("URL")
sURL_s = Split(sURL1,"/")

WebpageFile= sURL_s(Ubound(sURL_s))
End Function



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum