I want to filter out every p/w inputs which contain unaccepted characters. This p/w-field should only accept characters: A..Z, a..z, 0..9 else: echo 'Password contains unaccepted chars'

Thanks in advance (TIA)!