preload
Captcha E-mail Hijacking Protection FunCap, Capcha Q & A Verification Text
Feb 27

Very easy to install PHP form builder, with validation and date selection tools, the perfect convenience tool. To create a very basic form, include the form building class and then use the following code:

Features
Inline validation.
Easy installation of date selectors.

Example

<?phprequire 'classes/formbuilder.class.php';
$form = new formBuilder('table');

$form->addField('text', 'Your name', true);
$form->addField('text', 'Your age');
$form->addField('select', 'Please select a type', true, array("downloads", "email", "links"));
$form->addField('select', 'Download', true, array(1 => "download one", 12 => "download two", 15 => "download three"));
$form->addField('textarea', 'Comments');
$form->addField('date', "D.O.B", false, "18 June 2006");
$form->addField('checkbox', 'Your what', true, array(10 => "download one", 20 => "download two", 30 => "download three"));
$form->addField('submit', 'Send form');

if ($form->isError())
{
echo $form->getError();
}

echo $form->displayForm('table', 'type');
?>

This will produce a tabular version of the form with all the field names and value. You can also use the specify validation.

Submission buttons are recognized and titles are not included in the final output of the form.

Leave a Reply

 
 
Please enter the word above into the box below, the word is not case sensitive.
 
If you have trouble reading the word above then click here to load a new word.
Security word: