w3schools first name last name email confirmation email submit validation code example
Example: php validate name
if(preg_match("/^([a-zA-Z' ]+)$/",$name)){
retun true; // is validate name
}
if(preg_match("/^([a-zA-Z' ]+)$/",$name)){
retun true; // is validate name
}