Hi everyone, I have a login form working great, until I found this strange error.
If a user enters the username as user name (with a space) the login script fails.
So I have tried using
$username = str_replace(' ', '', strtolower($username));
I thought the above would remove any spaces from the entered username and produce a single string.
It works when registering, but for some reason, it doesnt work on the login page.
Does anyone know why the above is not removing any spaces in the entered username.