bgreenhouse
Technical User
Hi Everybody
This is driving me crazy because I know how to do it, but can't get it right. I want to check where the user came from, and am using request.servervariables("HTTP_REFERER" to see. I'm trying to build an if statement that compares it to where they "should have" come from, and then perform different actions based on their origin. The problem is, I don't want to hard code the whole URL in there in order to avoid problems when we switch between servers (development to production, etc...). So I'm trying to say something like
I know that LIKE is SQL, so I've tried wild cards (% and *), and can't get it to work. HELP!!!!!
Ben
This is driving me crazy because I know how to do it, but can't get it right. I want to check where the user came from, and am using request.servervariables("HTTP_REFERER" to see. I'm trying to build an if statement that compares it to where they "should have" come from, and then perform different actions based on their origin. The problem is, I don't want to hard code the whole URL in there in order to avoid problems when we switch between servers (development to production, etc...). So I'm trying to say something like
Code:
IF request.servervariables("HTTP_REFERER") LIKE filename.asp THEN
I know that LIKE is SQL, so I've tried wild cards (% and *), and can't get it to work. HELP!!!!!
Ben