PHP Code:
if(!ereg("[a-z]",$name)){return 9;}
$uname=ereg("[a-z,0-9,.-_]",$name);
how solved this problem?
if(!ereg("[a-z]",$name)){return 9;}
$uname=ereg("[a-z,0-9,.-_]",$name);
preg_match
if(!ereg("[a-z]",$name)){return 9;}
$uname=ereg("[a-z,0-9,.-_]",$name);
if(!preg_match("[a-z]",$name))
{
return 9;
}
$uname=preg_match("[a-z,0-9,.-_]",$name);
if(!preg_match("/[a-z]/",$name))
{
return 9;
}
preg_match("/[a-z,0-9,.-_]/",$name,$matches);
$uname= $matches[0];
Comment