SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Current page

  1. #1
    SitePoint Wizard simplecode's Avatar
    Join Date
    Jun 2006
    Posts
    1,129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb Current page

    how to print or get the name of current page using ASP

  2. #2
    SitePoint Addict gl3nnx's Avatar
    Join Date
    May 2005
    Location
    at http://www.gl3nnx.net
    Posts
    344
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    <% 
        
    prot "http" 
        
    https lcase(request.ServerVariables("HTTPS")) 
        if 
    https <> "off" then prot "https" 
        
    domainname Request.ServerVariables("SERVER_NAME"
        
    filename Request.ServerVariables("SCRIPT_NAME"
        
    querystring Request.ServerVariables("QUERY_STRING"
        
    response.write prot "://" domainname filename "?" querystring 
    %> 
    Quote Originally Posted by simplecode
    how to print or get the name of current page using ASP


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •