SimpleForm: Easy PHP multi-form email handler
— It’s been a while, but today I am releasing a new version of my contact form script, this time under the name SimpleForm. It’s a nicer version of the previous one, re-written from the ground up and with a couple of new features. SimpleForm is basically meant to be an easy solution to handle one or many forms with little effort. It’s mainly focused on ease of use and rapid deployment.

These are a couple of it’s main features ( ver. 1.1.2 ):
* Multiform handler.
* Support for required fields.
* PHP email validation.
* Unobtrusive JavaScript function to pre-check form data ( 4KB file ).
* Lightweight, easy to use.
* Multilingual support.
* External configuration file that can reside outside the public folder.
HOW DOES IT WORKS?
It’s very simple, first there is a configuration file where you define all of your website forms, by this I mean form title, form fields, form required fields and the location of each form. Then there are some snippets you have to add to your form page/s and thats all. SimpleForm takes care of pre-cheking the form fields with JS and then validating them with PHP, if it’s valid then it will send the email to the configured email address and return the user to the form page with a success message or otherwise, with an error message.
INSTALLING THE SCRIPT
These are the necessary steps to have it up and running ( requires PHP 5 ):
- Download SimpleForm ( ver 1.1.2 )
- Open sf-config.php and edit the necessary info.
- Upload sf-config.php to your host ( preferably outside the public folder ).
- Open simpleform.php and edit the variable $PATH_TO_CONFIG_FILE ( on line 24 ) with the path from simpleform.php to sf-config.php ( leave empty if it resides on the same folder ).
- Upload simpleform.php, simpleform.css and checkform.mini.js inside your public folder.
- Open your form page/s and add the necessary code snippets.




