Re: Form Data Filtering
| From: | Richard Heyes | Date: | Fri, 15 Jun 2007 14:28:33 +0000 |
| Subject: | Re: Form Data Filtering | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-257070@lists.php.net to get a copy of this message | ||
kvigor wrote:
Hello, I 'm checking form data for profanity but it only works if the $_POST['var'] is lowercase I was wondering if anyone knew how I could catch the profanity no matter what case it was. No matter if it was BAD or bad or mixed like BaD?Use strcasecmp() or perhaps better, stripos(). -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software