Jump to content

username/password CASE SENSATIVITY


astralaaron
 Share

Recommended Posts

When you check it do this to both variables that you are checking against:strtolower("word" or $variable) == strtolower("word" or $variable)All it does is convert it all to lowercase.

Link to comment
Share on other sites

When you check it do this to both variables that you are checking against:strtolower("word" or $variable) == strtolower("word" or $variable)All it does is convert it all to lowercase.
i thought about this, would that make it if they typed their name in as: JoHn they will be logged in as: john ?iwas wondering if there was a way that they can register as: joHN and sign in as JohN or JOHNand it will display however they type it???does that make any sence?
Link to comment
Share on other sites

Yes, since you only use it in the if statement, it does not apply lowercase permanently to it. As long as you dont do something like $name = strtolower($name); it will have the same case.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...