ASP gets the current page path

xiaoxiao2021-03-06  16

Function FullPath () 'gets the current page path (by wind)

DIM STR, Host, URL, Keyword, Full

Str = "http: //"

Host = Request.SerVariables ("http_host")

URL = Request.serverVariables ("Path_INFO") 'or URL

Keyword = Request.ServerVariables ("query_string")

IF keyword <> "" ""

Full = STR & HOST & URL & "?" & Keyword

Else

Full = STR & HOST & URL

END IF

Response.write full

END FUNCTION

转载请注明原文地址:https://www.9cbs.com/read-45656.html

New Post(0)