allowing utf8 characters in registration form

From: Date: Tue, 29 Apr 2003 02:53:35 +0000
Subject: allowing utf8 characters in registration form
Groups: php.general 
Request: Send a blank email to php-general+get-145583@lists.php.net to get a copy of this message
i have a user registration script that filters off unwanted characters: if (strspn($firstname,"\'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ") != strlen($firstname)) print "illegal character(s) found in firstname"; question: how do i modify the code to allow for utf8 characters ? pls advise -- roger __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com

« previous php.general (#145583) next »