Table of Contents
- Project Overview
- System Requirements
- What's New/Different in Version 2.x
- Getting Started
- Examples
- Elements
- Views
- Validation
- Setting Element Values
- Ajax
- Conditions
Sponsored By

Elements
The pfbc project includes 19 elements that added to your forms through the addElement method. These elements are as follows: Button, Captcha, Checkbox, Checksort, CKEditor, Date, Email, File, Hidden, HTML, HTMLExternal, Password, Radio, Select, State, Textarea, Textbox, TinyMCE, YesNo.
<?php
$options = array("Option #1", "Option #2", "Option #3");
$form = new Form("elements", 400);
$form->addElement(new Element_Hidden("form", "elements"));
$form->addElement(new Element_Textbox("Textbox:", "Textbox"));
$form->addElement(new Element_Textarea("Textarea:", "Textarea"));
$form->addElement(new Element_Select("Select:", "Select", $options));
$form->addElement(new Element_Radio("Radio:", "Radio", $options));
$form->addElement(new Element_File("File:", "File"));
$form->addElement(new Element_Password("Password:", "Password"));
$form->addElement(new Element_Checkbox("Checkbox:", "Checkbox", $options));
$form->addElement(new Element_YesNo("Yes / No:", "YesNo"));
$form->addElement(new Element_Checksort("Checksort:", "Checksort", $options));
$form->addElement(new Element_Sort("Sort:", "Sort", $options));
$form->addElement(new Element_State("State:", "State"));
$form->addElement(new Element_Country("Country:", "Country"));
$form->addElement(new Element_Email("Email:", "Email"));
$form->addElement(new Element_Color("Color:", "Color"));
$form->addElement(new Element_Date("Date:", "Date"));
$form->addElement(new Element_Captcha("Captcha:"));
$form->addElement(new Element_Button);
$form->render();
?>
<?php
$form = new Form("webeditors", 650);
$form->addElement(new Element_Hidden("form", "webeditors"));
$form->addElement(new Element_TinyMCE("TinyMCE:", "TinyMCE"));
$form->addElement(new Element_CKEditor("CKEditor:", "CKEditor"));
$form->addElement(new Element_Button);
$form->render();
?>