If a username registers, their username's first letter is automatically capitalized and sent to the database. If a user decides to capitalize a second letter in the middle of their username (Ex: McLoven), unless the username is typed with that capitalized letter, I get an error that says "Incorrect Password!". The password is set as an MD5 encryption.
Any suggestions on what to do to fix this problem?
// check to see if they match if ($username==$dbusername&&md5($password)==$dbpassword) { //echo "You're In! <a href='member.php'>Click</a> here to enter the member page."; session_start(); $_SESSION['username']=$username; $_SESSION['views'] = 0; header('Location:http://www.daobux.com/member.php'); } else echo "Incorrect Password!";
// check to see if they match if ($username == $dbusername && $password == $dbpassword) { //echo "You're In! <a href='member.php'>Click</a> here to enter the member page.";