Line 40 is definitely a problem. As currently marked up with its quoting and commas, it has way too many parameters for the mail() function. Here I've broken down each parameter onto its own line to make it easier to see what you are trying to do:
mail("example@example.com",
'online registration: ' . "\n\n" . $message,
"Lastname: $lastname",
"Phone: $phone",
"Address: $address",
"City: $city",
"Zip: $zip",
"Date of birth: $dob",
"Wife: $wife",
"Husband $husband",
"Childred: $children",
"more info: $moreinfo "From: $from");
And the very last "parameter" is causing the parse error due to the faulty quoting, though once you fixed that you would then get another error for too many parameters in the mail() function.
I would suggest to restructure this to first create a separate variables to contain the text for each parameter to the mail() function, then when you call the function you just supply it with those variables as parameters rather than trying to cram everything into the mail() call.