Form information

should be:

if (filter_var($_POST['Youremail'], FILTER_VALIDATE_EMAIL)) {
    $email  = $_POST['Youremail'];
} else $validationOK = false;

for name it depends on what characters you are prepared to accept as part of a valid name

2 Likes