I have a form with a textbox and I already have a "smut engine" script which turns bad words into ******.
What I would like to do is prevent people entering telephone numbers, and similarly turn them into *******. What I have in mind is that a phone number is recognised as being 8 consecutive digits but including blanks or hyphens.
E.G. 1234 5678 or 1234-5678 or 012-345-6789 recognised as phone numbers.
I don't seem to be having much success in developing a working script. Can anyone point me the right way?
What I would like to do is prevent people entering telephone numbers, and similarly turn them into *******. What I have in mind is that a phone number is recognised as being 8 consecutive digits but including blanks or hyphens.
E.G. 1234 5678 or 1234-5678 or 012-345-6789 recognised as phone numbers.
I don't seem to be having much success in developing a working script. Can anyone point me the right way?
Comment