Forums

This topic is locked

Read URL

Posted 20 years ago
1
has voted
20 years ago Steve V posted:
Hi All,
I have some 200 URL's which I currently forward to one domain.
When clients enter a URL I have no way of tracking which URL they used to get to my site.
I would like to read the URL, place it in a database, and then forward clients to my site.
Language DWMX, ASP.

Thanks
Steve

Replies

Replied 20 years ago
20 years ago Lee Diggins replied:
Hi Steve

Use this:

<% Request.ServerVariables("HTTP_REFERER" %>

Returns a string containing the URL of the page that referred the request to the current page using an <a> tag. If the page is redirected, HTTP_REFERER is empty

Digga

Sharing Knowledge Saves Valuable Time!!!

Reply to this topic