
japhy
Enthusiast
May 22, 2000, 6:10 AM
Post #2 of 2
(163 views)
|
You might get a reasonable value in the $ENV{HTTP_REFERER} variable. That holds the value of the referrer (yes, that is the correct way to spell the word -- the variable is spelled incorrectly), but it is subject to tampering. But if you don't really care, then you can do something like: <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> use LWP::Simple; $previous_page = get $ENV{HTTP_REFERER}; </pre><HR></BLOCKQUOTE> And then $previous_page holds the content of the page they supposedly linked from. Note that they MUST HAVE LINKED FROM THE PAGE to make it the HTTP_REFERER. That's because that's what it MEANS to refer.
|