trim

trim

get rid of space, \n  and \r, etc

$login = trim($_POST[‘user_login’]);