View previous topic :: View next topic |
Author |
Message |
Stacy
Joined: 12 Oct 2004 Posts: 9
|
Posted: Wed Nov 10, 2004 3:12 pm Post subject: Get the referral URL from ASP page |
|
|
I'm writing ASP stats application and I store information about the users browsing the site in SQL Server 2000 database.
I want to be able to get the URL that the user came in from (the referral URL) and to save this for each visited page. For example, if the user searched on Google about "asp scripts" and then clicked on my site from the search results, I want to save the referrer as the following:
google.com/search?ie=UTF-8&q=asp+scripts
How do I do that?
Thanks,
Stacy |
|
Back to top |
|
|
administrator Site Admin
Joined: 01 Oct 2004 Posts: 183
|
|
Back to top |
|
|
Missie
Joined: 06 Feb 2006 Posts: 25
|
Posted: Thu Feb 09, 2006 8:09 pm Post subject: |
|
|
Cool info. I was looking around for info on this exact thing. Thanks for posting it. *me goes off to try it on my site.* |
|
Back to top |
|
|
raven
Joined: 31 Jan 2006 Posts: 41
|
Posted: Thu Feb 23, 2006 5:25 pm Post subject: |
|
|
Are these all of the request variables or is there a place to get the full list:
Quote: | REMOTE_ADDR - The IP address of the remote host making the request.
REMOTE_HOST - The name of the host making the request.
REQUEST_METHOD - The method used to make the request. For HTTP, this might be GET, HEAD, POST, etc.
SCRIPT_NAME - A virtual path to the script being executed.
SERVER_NAME - The server's host name or IP address
SERVER_PORT - The port number to which the request was sent. |
_________________ Programmers do it in code |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|