asp.net - How to do a if else statement in classic asp -



asp.net - How to do a if else statement in classic asp -

i'm new classic asp , i'm trying figure out simple if else statement. reason it's recognizing person 2 , not trying person 1?

any thought on how fix? thanks

this code:

<% dim getpath getpath = request.servervariables("url") & query_string dim page page = "/products/dowlex/index.htm" if getpath = page varrecipient = "email1@email.com" response.write("*path = " & getpath) response.write("person 1") else varrecipient = "email2@email.com" response.write("*path = " & getpath) response.write("person 2") end if varformname = "contact" varrhbusinessunit = "businessname" varlanguage = "english" varcourtesyresponse = "y" varredirect = "#noredir?formrun=true" varsubject = "ask expert form" %>

i compare 2 strings based on same case...

if ucase(getpath) = ucase(page) then

and of course, if query_string ever has value, 1st case never true.

asp.net if-statement asp-classic

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -