I have the following code to compare two string
in fact i have two strings stored in the db
one is encrypted, the other is not encrypted
i am comparing decrypted value of the encrypted one with the other string and display a message accordingly
Sub ValidateCoupon (rc, msg)
dim EncodedName, DecodedName, Realname
Realname = couponother
response.write "realname = <br>" & DecodedName & "<br>"
response.write "couponother = <br>" & Realname
if ucase(DecodedName) <> ucase(Realname) then
msg= "Bad coupon name"
OK now my problem it that when i compare decodedname and realname,
i get the result "Bad coupon name" even if they are equal
My response.write shows that decodedname and realname are the same.
What the problem ?