Hello, $errMes"; echo "

Please re-enter the information

"; echo '

Go back to form

'; } else { $age = date('Y') - $yearOfBirth; if ($age >= 18){ echo "

Welcome! $firstName $lastName

"; echo "

You are now $age years old, so you can fill this form.

"; }else{ echo "

Sorry: Your age is: $age.

"; echo "

You should be over 18 to fill this form

"; } } ?>