PDA

View Full Version : pulling in ../ level from url


david_stev
04-03-2003, 10:00 AM
What I want to do is have one include for my nav, but not write out absolute url's.

To do this I need to pull in the url then set a level var on the link.

The code I have tried so far looks like this

<%

dim Level = ""

Page = Request.ServerVariables("PATH_INFO")

do until InStr(Page, "/") = 0

Level = Level & "../"

loop

%>

But this results in the page timing out ie a never ending loop.

Any help would be greatly appreciated.

Thank You in advance:confused:

raf
04-03-2003, 10:49 AM
:confused:
Crosposted with MySQL-forum.

http://www.codingforums.com/showthread.php?s=&threadid=17600

This didn't work or wasn't what you're looking for? Can you explain a bit more what exactly you need/are trying to do.