I'm using a form on a Web page, for people to send me e-mails. The problem is that I'm not getting a value for HTTP-REFERER.
Here is the part of the code that test for a referer:
---------------------
validReferer = false
referer = GetHost(Request.ServerVariables("HTTP_REFERER"
)
Response.write("<br>referer = " & referer)
for each host in referers
if host = referer then
validReferer = true
end if
next
if not validReferer then
if referer = "" then
call AddErrorMsg("No referer."
else
call AddErrorMsg("Invalid referer: '" & referer & "'."
end if
end if
-------------------
I keep receiving the "No referer." message, which means that the value of HTTP_REFERER is empty. Any ideas why this might be?
Thanks for your help,
May
Here is the part of the code that test for a referer:
---------------------
validReferer = false
referer = GetHost(Request.ServerVariables("HTTP_REFERER"
Response.write("<br>referer = " & referer)
for each host in referers
if host = referer then
validReferer = true
end if
next
if not validReferer then
if referer = "" then
call AddErrorMsg("No referer."
else
call AddErrorMsg("Invalid referer: '" & referer & "'."
end if
end if
-------------------
I keep receiving the "No referer." message, which means that the value of HTTP_REFERER is empty. Any ideas why this might be?
Thanks for your help,
May