Contents |
Installation
Requirements
- PHP 5 or higher
- Latest generation browser (Internet Explorer 6 & 7, Firefox 2 & 3, Opera 9, Safari 2 and up)
Installation steps
- Download the latest version of the ValidForm Builder package
- Extract the archive to the root folder of your website. The package should consist of the following files and folders:
- css [folder] Contains the default CSS file for the form design
- libraries [folder] Holds the library files
- ValidForm [folder] The PHP files for the library
- jquery.js [file] Latest version of jQuery
- validform.js [file] Javascript part of the library
- vf_captcha.php [file] PHP file for the CAPTCHA type field.
Implementation
PHP
For the implementation in PHP the only thing you need to do is include the class.validform.php file using the either the include(), include_once(), require() or require_once() function.
require_once("libraries/ValidForm/class.validform.php");
HTML
There are a few things you need to add to the HTML head section of your page:
<link type="text/css" rel="stylesheet" href="css/validform.css" /> <script type="text/javascript" src="libraries/jquery.js"></script> <script type="text/javascript" src="libraries/validform.js"></script>
After that you are ready to build your forms. If you want to start easy check out the Simple Contact Form tutorial. Otherwise dive right into the code and check out the API of the ValidForm Builder.
Have fun building forms!

