I have this bit of code here which is part of a php login form which take a user's first and last name and a password.
$first_name = SANITIZE(trim(strtolower(@$_POST["f_name"])));
$last_name = SANITIZE(trim(strtolower(@$_POST["l_name"])));
These work fine on desktop for any kind of name but on mobile there seems to be an issue with names that have either a ' or a - in them. So for example Shaquille O'Neal can log in just fine on desktop with his first and last name, but if he tries to log in with mobile something happens with the apostrophe in his name and it says the user doesn't exist. Any ideas why this might happen? Has been tested on both iphone and android phones with the same result.