How to display url

Discussion in 'HTML & Website Design' started by jkgiven, Apr 19, 2007.

  1. #1
    I'm working on a custom error screen and would like to display the url of the page that the user came from, and was attempting to go to. How do i do this?
     
    jkgiven, Apr 19, 2007 IP
  2. wmtips

    wmtips Well-Known Member

    Messages:
    601
    Likes Received:
    70
    Best Answers:
    1
    Trophy Points:
    150
    #2
    It is impossible to do with HTML without server-side processing.

    If you use PHP, you can get the requested url with
    getenv('REQUEST_URI')
    PHP:
    and page that the user came from with
    
    getenv('HTTP_REFERER')
    
    PHP:
     
    wmtips, Apr 19, 2007 IP
  3. faralimite

    faralimite Greenhorn

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    Thank you very much. It was helpful
     
    faralimite, May 13, 2009 IP