Recommend This Page Using JMail

An e-mail component that can be used on an NT Server with IIS 3.0 and up, or Personal Web Server 4.0. To send the link in this example, we will use the W3 Jmail component.

In order for us to know what page the user is trying to recommend, we will put a link on that page that points to recommend.asp (the file used in this example). On recommend.asp, we use the following portion of the script:

<% Request.ServerVariables("HTTP_REFFERRER") %>

The Request.ServerVariables("HTTP_REFFERRER") only does one thing: It requests the URL of the page containing the link used to get to recommend.asp.