<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! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php