astralaaron Posted April 26, 2007 Share Posted April 26, 2007 I would like to know how to make my username/password login non case sensativeplease help! Link to comment Share on other sites More sharing options...
reportingsjr Posted April 26, 2007 Share Posted April 26, 2007 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 More sharing options...
pulpfiction Posted April 26, 2007 Share Posted April 26, 2007 Sorry wrong post.... Link to comment Share on other sites More sharing options...
astralaaron Posted April 26, 2007 Author Share Posted April 26, 2007 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 More sharing options...
reportingsjr Posted April 26, 2007 Share Posted April 26, 2007 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 More sharing options...
astralaaron Posted April 26, 2007 Author Share Posted April 26, 2007 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.ahh i think I understand how itworks thanks for the information Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.