Hi Brian, This depends on a number of things, the browser, the server and your script's environment.
One of the values (that should be ) submitted by a web browser when someone clicks a link is URL of the referring (current) page. This is passed to the server along with the rest of the information, e.g. browser name. In Apache, this is passed to CGI's as an environment variable HTTP_REFERER, so all you need to do is access $ENV{HTTP_REFERER} to get the value. The following script I find usefull often. It dumps the #ENV, the environment, and any CGI parameters. Gary #!/usr/bin/perl # # CGI script to print out the relevant environment variables. # It's just one big print statement, but note the use of the # associative %ENV array to access the environment variables. # use CGI; $query=new CGI; print <<EOF; Content-Type: text/html <HTML> <HEAD> <title> CGI Tutorial: REVCOM Environment variables script</title> </HEAD> <body bgcolor=FFFFFF text=000000 link=0000ff alink=ff0000 vlink=800080> <center> <hr width=80%> <h1> Environment variables script</h1> <hr width=80%> <p> Here are the environment variables that this CGI script has been called with. <p> <hr width=80%> <table width=80%, border=2> <tr> <th width=30%>Label</th> <th width=50%>Value</th> </tr> EOF while (($KEY,$VALUE) = each(%ENV)) { $VALUE='<empty>' if (!$VALUE); print " <tr> <td width=30%>$KEY</td> <td width=50%>$VALUE</td> </tr> "; } if ($query->param) { @keywords=$query->param; foreach $keyword (@keywords) { $VALUE=$query->param($keyword); $VALUE='<empty>' if (!$VALUE); print " <tr> <td width=30%># $keyword</td> <td width=50%>$VALUE</td> </tr> "; } } else { print " <tr> <td width=30%>param</td> <td width=50%><empty></td> </tr> "; } print "</table> </center> <pre>"; chomp(@SETS = qx!/bin/bash -c set!); for(@SETS) { print "$_\n"; } print " </PRE> </BODY> </HTML>"; # Print statement (and program) ends here On Thursday 29 November 2001 6:17 am, Brian wrote: > I am looking for a way, script or variables used, to determine from where > someone is comming from. > > IE, if they click on my site from a search engine, or if they just type in > the URL direct. > > Does anyone have the means to assist? > > Thank You! :) > > Brian. -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]