Thank you very much for your help so far but my problem remains therefore I insert the code snippet:
function checkfName($fName)
{
global $i, $message;
if((strlen($fName)<2)||(!eregi("([a-zA-Z])",$fName)))
{
if(strlen($fName)==0)
{
$message[$i]="<B>First Name</B> must be entered";
$i++;
return false;
}
else
{
$message[$i]="<B>First Name</B> is not valid";
$i++;
return false;
}
}
else
{
return true;
}
}
Now my problem is that a string like "John2"
should be regarded as false - only letters on any place in the string are allowed but not numbers on any place?
Sorry for the format!!
Thanks very much :-))