inteleserve
IS-IT--Management
I have a form where have the user enters their username.
But when I check the Request.form("login_username") against the objrs("username") in my table they don't match because the one pulled from the table has a space after it.
I found the space by doing a Response.Write objrs("username") multiple times like this.
Response.Write objrs("username")
Response.Write objrs("username")
Response.Write objrs("username")
The output looks like this:
myusername myusername myusername
Rather than:
myusermynameusermynameusername
Then the problem is:
Response.Write Request.form("login_username")
Response.Write objrs("username")
Response.Write Request.form("login_username")
Response.Write objrs("username")
Response.Write Request.form("login_username")
Response.Write objrs("username")
Will output:
myusernamemyusername myusernamemyusername myusernamemyusername
But when I check the Request.form("login_username") against the objrs("username") in my table they don't match because the one pulled from the table has a space after it.
I found the space by doing a Response.Write objrs("username") multiple times like this.
Response.Write objrs("username")
Response.Write objrs("username")
Response.Write objrs("username")
The output looks like this:
myusername myusername myusername
Rather than:
myusermynameusermynameusername
Then the problem is:
Response.Write Request.form("login_username")
Response.Write objrs("username")
Response.Write Request.form("login_username")
Response.Write objrs("username")
Response.Write Request.form("login_username")
Response.Write objrs("username")
Will output:
myusernamemyusername myusernamemyusername myusernamemyusername