Announcement

Collapse
No announcement yet.

Quick Perl question...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Quick Perl question...

    Google isn't helping.

    I'm logging a click trail for an experiment, so I'm writing the current URL to a log file each time each page in the site is accessed. I encoded all the links with (unused) bookmarks so I'd know what region of the referer page was used to navigate.

    Sadly, the bookmark is not kept in $ENV{REQUEST_URI} so I'm stuck.

    Any ideas?

    TIA,

    T.
    FT.

  • #2
    I'm sure none of the 28 of you that read this bothered to reply because it was so simple

    For everyone else who wants to know, the answer is that the fragment of the URL that is the bookmark, e.g.

    www.myurl.com/index.cgi#mybookmark (#mybookmark is the bookmark fragment)

    does not get passed to the server - this is kept and used by the browser.

    I solved my problem by using a query instead:



    then REQUEST_URI contains everything from the / and the 'mybookmark' part is also available in QUERY.
    FT.

    Comment

    Working...
    X