有什么方法可以取地址栏完整路径,如:
http://www.domain.com/test/foderpath
取到全部?ASP的
|
|
#2 (页面定位) |
|
注册日期: 2005-09-04
住址: 火星人
帖子: 17779
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
<%
Function Geturl() Dim str,host,url,keyword,full str="http://" host = Request.ServerVariables("HTTP_HOST") url = Request.ServerVariables("PATH_INFO") '或url keyword = Request.ServerVariables("QUERY_STRING") if keyword <> "" then full = str&host&url&"?"&keyword else full = str&host&url end if Geturl =full End Function %> <%=Geturl()%> ![]() 匆匆人生中,你做了几件令自己骄傲的事呢? |
|
|
|