Thanks sijpie and jwm5411!
I think this is exactly what I want to do... but it's not quite working yet.
The first part works where the advert link goes to
Http://www.company.com/products.asp?...=google_advert
Is there supposed to be asp code on this products.asp page that starts a session? I tried putting the following code on the products.asp page:
<body>
<%source=request.servervariables("http_referer") %>
</body>
The second part is still not working... Here is a copy/paste from my contact.asp page code:
<%session("advert")=request("source")%>
<FORM NAME="form_1" ACTION="http://www.company.com/contact-script.asp" METHOD="POST">
<input name="advert" type="hidden" id="advert" value="<%=session("advert")%>"></td>
...other stuff...
ALSO - a programmer that used to work with me, wrote an .asp file that processes our contact form (contact-script.asp). It is really hard to use, but something in our server prohibits us from being able to use some of the other form processors out there. (aspmail.asp) So, I was thinking maybe part of the problem is the asp file that is compiling the information from our form. I added the field "advert" to be included in the form submission results on the contact-script.asp page
Msg = "New Web Contact Received" & Now & VBCRLF & _
"Source: " & Request.Form("advert") & VBCRLF & _
"First Name: " & Request.Form("firstname") & VBCRLF & _
...more...
My results show:
New Web Contact Received3/16/2004 10:21:05 AM
Source:
First Name: Fred
...more...