Introduction to form processing
This tutorial will walk you through the creation of a generic PHP form processor script. This will allow you the ability to check for blank fields and return the user to the form if any where found and create an email that is formatted to display all the information contained in the submission. You will need to test these files in a server environment with PHP installed.
There are better ways to handle form processing than what we will cover in this tutorial. The ideal way would be to create a custom form processing script for each form you intended to process, and then process the information in the way you desired. That way you could display errors for blank fields and better instructions to the user.
The approach that we will be taking is to allow a "1 size fits all" approach that will merely send the content submitted by the form to an email you specify. We will design this form processing script to handle any size form, but only text based fields(no "files"). We will abort sending the email and redirect to the form if we detect any empty fields. We will also have the ability to redirect the user to a thank you page after successful completion.
Alright, lets get it started!