Commits show the step by step approach to building a form complete with validation, mailing and saving the forms information. This example only uses one input type text for email to keep the example short. I do not use the html 5 type email or required so that you can verify that your php validation code is correct.