That should have been LCase(), instead of LOWER, in VBScript.
But as I doubted, Srichary, doesn't seem to assign any value to the OCCUPATION variable. So that doesn't always match with the rs("Occupation")'s value. I believe on top of this page, somwhere it should be written as
Code:
occupation = Request.Form("Occupation")
which seems to be missing. Can you confirm if and where you assign the value of OCCUPATION that is used on the left-hand-side in the IF statement?
Hope that helps.
Cheers!
_________________________
- Vijay G
Strive for Perfection