Dear all,
In my work, I have to validate a text field so that it should contain only characters with space(means like "Sam Walt Robson"). For that I wrote a code segment as follows:
function check_field1($field_name_1)
{
if(!preg_match("/[a-zA-Z]+$/s",$field_name_1))
return TRUE;
else return FALSE;
}
But it is accepting strings like "1mark", "22Steve", which it should not. Can any please help me in solving this problem?
Thanking you,
with regards,
Indrajit.