- Microsoft VBScript runtime error '800a0009'Subscript out of range: '[number: 2]'
/formmail.asp, line 96
Here is the problem code (line 96 is in red):
'----------------------------------------------------------------------------------------------------
'verify the referer
'----------------------------------------------------------------------------------------------------
referer = request.ServerVariables("HTTP_REFERER")
referer = split(referer,"/")
url_verified = "no"
for icounter = Lbound(url) to Ubound(url) '
if referer(2) = url(icounter) then
url_verified = "yes"
end if
next
if not url_verified = "yes" then
response.write("The url specified is invalid!")
response.End
end if
CAN ANYONE PLEASE HELP??!!!!
Last edited by unclechris; 07-12-2007 at 12:14 AM..
|