Right now i have this for full name:
if(empty($_POST['full_name']) || strlen($_POST['full_name']) < 4)
{
$errormessage[] = "ERROR.\n";
}
How can i make a validation for full name, so the entered name should contain space?
So like if person enter:
John Andersson
Its ok, but if he enter:
JohnAndersson
its not ok, error. So you would need a “space” in your fullname.
Like this:
You need to enter the
trimfunction to check for bad names such as:Justin Alba[space][space]Justin AlbaJustin[space][space]Justin