I have a form where the user need to give a new password, but I only want to allow a-z and 0-9 and that's all, so no special characters or even spaces!
How can this be done?
I looked at the strip_tags function:
$pass = strip_tags($pass, '<a><b><i><u>');
But do I need to give all the special characters (like . , ; : # $ & ...)?
Isnt there another function so that this would be easier?