0
I need a working solution for a system I’m making.
I need to block textarea field registration if it contains a few words in the string, example:
This is a brief description about my profile, my phone 33 3333-3333, my email: [email protected], and my website: www.meusite.com or meusite.com
I want to block, IE, not allow these items in the string, I do not want any kind of contact, nor phone, nor email, nor website, nor facebook nor any kind of social network.
It can be a solution in Javascript or in pure PHP, which is as simple and objective as possible.
I await your return!
Att
Alisson Maciel
Possible duplicate of has how to put mascara in php dynamically?
– rLinhares
Have you tried anything? Do you have any idea how you can do it at least? What do you know about regular expressions?
– Woss
Yes, I know a little bit of regular expressions I’m even using here, some validations and working, except that my main interest is to block the email and domain in the string. And this I can’t, I’m using a function with strpos, I’m using a function I could, to validate the field using the array_merge and the array_intersect, and etc. But I couldn’t block URL and E-mail in the string
– Alisson Maciel