check out preg replace in the manual... particularly example 3 of this page:
http://www.php.net/manual/en/function.preg-replace.php personally, i'd replace anything other than a-zA-z0-9 with _ Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php