Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If then else if statements based on request("value")

Status
Not open for further replies.

redbox

IS-IT--Management
Aug 19, 2003
1
SE
I've had trouble with the following: I want to display a different number based on the value of a querystring.
Basically it's as follows

if Request("Registration_Type") = Consumer person Then str1 = 150
elseif Request("Registration_Type") = Teacher person Then str1 = 300
else str1 = 20
end if

thats basically the code i've tried (doesn't seem to work). In the above case I want the if then statements to execute if the value of "Registration_Type is equal to consumer person. Help!
 
Put quotes around the comparison string.

v v

if Request("Registration_Type") = "Consumer person" Then str1 = 150



Steve Davis
hey.you@hahaha.com.au
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top