I use MySQL and PHP . In my database, I have a table with a name users, and inside the table usersthere is an entry:
username: admin
password: password
On my login page, I tried to log in as (password: password):
- username: ADMIN → result: you can log in
- username: admin → result: you can log in
I save the username in my database as "admin", all lowercase.
On my PHP authentication page, I did not enable the strtolower () function. Does this mean that in PHP the form field of the username I submitted is not case sensitive?
kanayaki
source
share