I am creating a page for users to create a username and password. I want the password to only contain the letters a-z, A-Z and/or numbers 0-9. If a user tries to use a special character other than them, I want to return an error message and have them try again. I thought I could do this with preg_match, but I can't seem to get it to work. This is what I've tried so far:if($username != "" || $password != ""){ $pattern="/^[!@#$%^&*_-+= ]*$/"; if (preg_match ($pattern, $username.$password)){ print($chr_err); include($login_page); exit(); }}I then try to create a username and password while purposelly using some of those characters, but I don't get the $chr_err message printed. Any help would be greatly appreciated!