Hi Dianne,

Generally, HTTP_REFERER is  the page which got you to the current page (the
page  that links to it). REMOTE_ADDR generally contains the IP. Try peeking at
that, or make a CGI with the following which will display your environment
variables for you:

#!/usr/bin/perl -w

use strict;

print "Content-type: text/html\n\n";

print qq{$_ => $ENV{$_}<br>\n} for keys %ENV;

If you are still having problems, I suggest sending questions to the
beginners-cgi list, as that is the list for Perl/CGI type questions.

HTH & Cheers,
Kevin

On Thu, Jun 07, 2001 at 11:35:49AM +1000, Dianne Van Dulken 
([EMAIL PROTECTED]) spew-ed forth:
> Hi, 
> 
> I was hoping someone would be able to give me a clue how I could find the
> referer IP.  If I use the Environment HTTP_REFERER, it will work in IE, but
> not in Netscape.
> 
> Does anyone know of a method that allows me to read this?
> 
> This is my first post, so I hope it is OK.
> 
> Thanks
> 
> Dianne
> 

-- 
[Writing CGI Applications with Perl - http://perlcgi-book.com]
I keep looking for the "Crash after viewing X pages" settings in Netscape, but
I just can't find it.
        -- me

Reply via email to