function nickname($str)
{
return ( ! preg_match("/^([a-z' ])+$/i", $str)) ? FALSE : TRUE;
}
function nickname($str)
{
$a = explode(' ', $str);
$error = 0;
foreach($a as $b)
if(!preg_match("/^[a-zA-Z]{3}+(([\'\-][a-zA-Z]{2})?[a-zA-Z]*)*$/", $b))
$error++;
return $error ? FALSE : TRUE;
}
function nickname($str)
{
return ( ! preg_match("/^([a-z' ])+$/i", $str)) ? FALSE : TRUE;
}
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
try that
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
try that