Hey everyone...I am having a little trouble with a logon script. I am trying to check the password against the one from the database and I cannot get the strings to compare correctly.
I have:
p = ObjRS.Fields("pw") 'password from the database
pass = Request.queryString("password") 'password from the form
I printed out both the values (Response.Write) and they both are correct (the password is 'test') however when I try and do:
if p = pass then...
it returns false. Also, StrComp(p, pass) returns a value of 1. I don't understand why it isn't working especially since with I print out the values they are both the same/correct. Any ideas?
-Greg :-Q
I have:
p = ObjRS.Fields("pw") 'password from the database
pass = Request.queryString("password") 'password from the form
I printed out both the values (Response.Write) and they both are correct (the password is 'test') however when I try and do:
if p = pass then...
it returns false. Also, StrComp(p, pass) returns a value of 1. I don't understand why it isn't working especially since with I print out the values they are both the same/correct. Any ideas?
-Greg :-Q
