trim password

admin

Administrator
Staff member
Another quick question.

I have a form to enter user and password. The validation processes are performed correctly in the sense of checking the user and password combination correctly.

I now have a problem with leading and trailing spaces in the password field.

before i perform the password check in the mysql database, i run the trim($user) and trim($password) functions, but they don't appear to be working. is there a special way i need to do this since it's a password field in the form?

so if user=joe and password=smith

you can enter user=joe and password= smith

and it still works...

thanks in advance
 
Back
Top