Sorry, I did not realize you want all 3 lines pasted in.
I have now replaced.********
Function getIPAddress()
Dim strIPAddress
if Request.ServerVariables("HTTP_X_FORWARDED_FOR") <> "" then
strIPAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
elseif Request.ServerVariables("HTTP_CLIENT_IP") <> "" then
strIPAddress = Request.ServerVariables("HTTP_CLIENT_IP")
else
strIPAddress = Request.ServerVariables("REMOTE_ADDR")
end if
getIPAddress = left(replace(replace(strIPAddress,"'",""),"""",""),50)
End Function
******with.....
Function getIPAddress()
getIPAddress = Request.ServerVariables("REMOTE_ADDR")
End Function
Also madsit is our technical consultant. He is not me.
Thank you for your assistance Samuel. I will post the results here.
Best regards,
<message edited by locogringo on Mon. Mar 24, '08 11:50 AM>