Hey Everybody,
I have my users enter some information into a form and submit it.
Then I do the standard checking of the form to make sure all entries were filled in correctly, if they were, the information is posted.
What I'm worried about is swearing and other such bad language. I would like to check through the variable for these things. For example,
the user enters their name where:
$name = "f......ing Jerk"
instead of just $name=~ s/f.....ing//;
I would like to give some feedback to the user for swearing so I want to detect the offensive language.
Any suggestions?
I'm basically lost here.
Thanks in advance,
Mike
I have my users enter some information into a form and submit it.
Then I do the standard checking of the form to make sure all entries were filled in correctly, if they were, the information is posted.
What I'm worried about is swearing and other such bad language. I would like to check through the variable for these things. For example,
the user enters their name where:
$name = "f......ing Jerk"
instead of just $name=~ s/f.....ing//;
I would like to give some feedback to the user for swearing so I want to detect the offensive language.
Any suggestions?
I'm basically lost here.
Thanks in advance,
Mike