webForumDet fria alternativet

sträng -> "path_info"

ASP

1 svar · 163 visningar · startad av Eclipse

Medlem sedan juli 20003 825 inlägg
Frågan#1
myPath  = request.serverVariables("path_info")
myPathX = myPath
myPathX = split(myPathX, "/")
myPath1 = myPathX(uBound(myPathX)-1)
'response.write "<BR><B>" & myPath & "</B>"

Av /www/products/index.asp får jag ut products. Vid närmare eftertanke skulle jag nog villja få ut /www/products/ i stället.

Medlem sedan dec. 200012 464 inlägg
#2
myPath = request.serverVariables("path_info")
mypath = mid(mypath,1,instrrev(mypath,"/"))

------------------
essentitia preter non sans multiplicandum

262 ms totalt · 4 externa anrop · v20260731065814-full.d8c17768
125 ms — deklarationer (db)
0 ms — hämta statistik (cache)
134 ms — hämta tråd, inlägg och bilagor (db)
124 ms — ändringar (db)