danf.1979
25th March 2006, 03:54
I have this on my source code, but it does not work:
setlocale(LC_ALL, 'es_CL.utf8');
// Do add result
$clean = array();
if (isset($_POST["name"]) && !empty($_POST["name"]) && ctype_alnum($_POST["name"]) && strlen($_POST["name"]) < 50) {
$mysql["name"] = clean_input($_POST["name"]);
}
And the locale is there:
dan@www:~$ locale -a | grep CL
es_CL.utf8
I want ctype_alnum to recognize characters like á,ó,ú, etc... is this possible? someone has done it?
Thanks.
setlocale(LC_ALL, 'es_CL.utf8');
// Do add result
$clean = array();
if (isset($_POST["name"]) && !empty($_POST["name"]) && ctype_alnum($_POST["name"]) && strlen($_POST["name"]) < 50) {
$mysql["name"] = clean_input($_POST["name"]);
}
And the locale is there:
dan@www:~$ locale -a | grep CL
es_CL.utf8
I want ctype_alnum to recognize characters like á,ó,ú, etc... is this possible? someone has done it?
Thanks.