Forgot to add, to use the function, you'd simply do;
<%
If CheckReferer(Request.ServerVariables("HTTP_REFERER "),
"http://www.yourdomain.com") Then
Response.Write "Yipee, they match"
Else
Response.Write "Oh dear, they don't match"
End If
%>
--
Regards
Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk
Keeping it FREE!
"Steven Burn" <pv*@noyb.com> wrote in message
news:#H**************@TK2MSFTNGP10.phx.gbl...
Function CheckReferer(sWhat, sMatch)
Select Case sWhat
Case sMatch
CheckReferer = True
Case Else
CheckReferer = False
End Select
End Function
--
Regards
Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk
Keeping it FREE!
"Chumley the Walrus" <sp*******@yahoo.com> wrote in message
news:1e**************************@posting.google.c om... I know I've used something like this in the past, can't put my finger
on it, tho...
I need to find out the method/keyword for checking to see if a user is
clicking into one webpage from a certain other webpage or url:
hypothetical example:
<%if referringurl = "http://www.yahoo.com" then
'do a function or task
end if%>
What would be the keyword or method/function for "referringurl" in the
above example?
Thanks
Chum