Forum Moderators: open
I have the following if statement that checks to see if the visitors IP address is 192.168.0.1 and if so i display something, if not then i display something else.
<% If Request.ServerVariables("REMOTE_ADDR") = "192.168.0.1" Then %>
But i want to use the if statement to check if REMOTE_ADDR starts with "192." or contains the phrase "192." at the moment it's checking to see if it is equal to.
Can anyone tell me how this can be done?
Thanks