check with phpmyadmin if the Collation of your username column is latin1_swedish_ci
alternatively you could use strtolower() on your login page
I was trying to check username in my login form that when someone puts username which is not exactly the same with the registered username, he/she will fail to login. Example. . Registered username is tEst and password is test, when someone tried to log in using "test" as username it will not log in because letter "e" must be "E". So it should be "tEst". How will i'am going to verify that?
check with phpmyadmin if the Collation of your username column is latin1_swedish_ci
alternatively you could use strtolower() on your login page
The collation is latin1_swedish_ci but still doesn't work. I check it in my sql using, WHERE username='".$username."'
Originally Posted by analyzer [Only registered and activated users can see links. Click Here To Register...]
PHP Code:WHERE username LIKE '{$username}'
Advertise your mobile site for FREE with [Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
I'll try it bro, thanks!
use character encoding utf8_general_ci, and make sure your username column is a UNIQUE key
[Only registered and activated users can see links. Click Here To Register...]
try strtolower($username);
this makes all characters lowercase. but the original poster wants to check for case "insensitive" characters.Originally Posted by arevel [Only registered and activated users can see links. Click Here To Register...]
so the user is able to use both upper and lower case at same time.
<?php
include ('Ghost');
if ($Post == true) {
echo '
alt='coding-talk.com!!' />';
echo 'Sharing Is Caring!';
} else {
echo '
alt='the username GHOST has been comprimised!' />';
echo 'OMG SOMEBODY HELP ME!!';
}
?>
$xtreme = strtolower ( $username );
and get ur sql output with strtolower , then it ll be ,k . Hmm
thats a nice server killer. and what if there`s about 1kk users + every second one of them (or more) tries to login?Originally Posted by GumSlone [Only registered and activated users can see links. Click Here To Register...]
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks