Verifying the users submission
Now that we have our form processor script, it would be a good idea to let the user know that there form submission was successful. By creating a simple "Thank You" page, they will receive reassurance that the form went through. You can make it any way you want, but if you are going to use the formProccessor.php script on more than 1 form, then you might want to make it as generic as possible.
File: thanks.html
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>formProcessor</title>
</head>
<body>
<h1>Thank you</h1>
<p>
Your form has been processed. We thank you for your interest in our site
</p>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>formProcessor</title>
</head>
<body>
<h1>Thank you</h1>
<p>
Your form has been processed. We thank you for your interest in our site
</p>
</body>
</html>
There you go. Make sure that the value set in the $returnTo variable matches the name of this file and test it out. It doesn't matter how many fields your form has, you will receive and email with all the information acquired by the form.