Please fill in your name.'; echo '
Try again'; } elseif (!preg_match("/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/", $email)) { echo '

Please provide a valid email address.

'; echo '
Try again'; } /* Sends the mail and outputs the "Thank you" string if the mail is successfully sent, or the error string otherwise. */ elseif (mail('maintainers@cfdtoolkit.org','New CFD Toolkit registration received',$message,'From: RegistrationBot@cfdtoolkit.org')) { echo '

Your registration has been successfully submitted. Thank you for registering!

'; echo '
Home'; } else { echo '

Unfortunately, there was a problem registering.

'; echo 'Go back to try again?'; } ?>