Is there a way in asp to retrieve part of the URL and use it say the url was http://localhost/site/craig/default.asp or http://localhost/site/craig/test.asp or http://localhost/site/craig/roger.asp?dan=1 is there anyway of retrieving the word craig so to use it in the page, I just want the word Craig This is because i could have other addresses that are for example http://localhost/site/jon/default.asp or http://localhost/site/jon/test.asp or http://localhost/site/jon/roger.asp where i need to retrieve the word jon at the moment i use the code strURL = Replace(Request.ServerVariables("URL"), "/default.asp", "") intStart = instrRev(strURL, "/") + 1 strName = mid(strURL, intStart) this worked fine until new pages are added ie a page that isnt default.asp Obviously i cant use strURL = Replace(Request.ServerVariables("URL"), "/default.asp", "") because default.asp will change... please advise thanks
dude a few days ago I gave you the EXAMPLE WHERE YOU HAD TO CHANGE ONE NUMBER ONLY and YOU HAD THE ANSWER TO YOUR NEW QUESTION