php forms
We’re going to start with my PHP forms. These forms are, by far, the item I receive the most requests for by other web designers. They do require a little understanding of what you’re looking at (in other words, you should be able to understand PHP coding at least a little bit) - but in the interest of trying to “make life easier”, I’ve commented out the code as much as possible.
These forms were initally developed on PHP4, but eventually had to progress to PHP5 compatibility. So you must have either PHP4 or 5 available on your server for these to work. I’ve tested and retested these forms on many levels, and I’ve had experts assist me in securing these forms. As far as I have been able to determine, they are secure from form mail injection attacks.
So download and enjoy. These are free for the taking, and you may distribute it at will. But please be sure you read my license.txt file that comes with each download, so you know your “restrictions and rights” of usage.
Click on the name of the form to view the requested file in action - click on the icon to download the files.
NOTE: this form has been updated! The newer version is more streamlined and secure. A security vulnerability was found in my old forms, so you need to read up on how to fix the forms if you’re already using them.



I was reading through the generated code for your php form before I used it and I have a couple questions.
Can you explain a little more how the surprise field is suppose to help prevent spam? I can see you testing for it in the php file but I think you are missing a line similar to this:
isset($_POST['surprise']) ? $action = $_POST['surprise'] : $surprise = ”;
Second question is if I want to add a custom field such as subject, do I test the input the same was as the name or as the message and are there any other tests I should run?
Spoken on July 12th, 2008 at 5:25 pm