RE: [PHP] Bad characters in a text field
| From: | Daniel Purdy | Date: | Fri, 12 Dec 2003 22:28:03 +0000 |
| Subject: | RE: [PHP] Bad characters in a text field | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-172614@lists.php.net to get a copy of this message | ||
<snip>
For example: I want to allow a-z ,A-Z, 0-9 and some others and strip out
everything else.
</snip>
You probably just want to use a regular expression. Check out
http://www.php.net/ereg
HTH!