Whoops.
Replace line 17 with
PHP Code:
echo "</pre>";//comment this out if you are not debugging
and line 45 with
PHP Code:
echo "<p>All fields are required, some were left blank.</p>";
edit: I've updated my previous post as I noticed other mistakes.
__________________