Also you can simplify your code by looping over $_POST.
You can validate after submission and return to the form page with the fields refilled and any notices echoed, but that takes different code.
Welcome to http://www.myphotowizard.net
where you can edit images, make a photo calendar, add text to images, and do much more.
When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.