资 源 简 介
Project Overview
The PFBC (PHP Form Builder Class) project is developed with the following goals in mind...
Promote rapid development of forms through an object-oriented PHP structure.
Eliminate the grunt/repetitive work of writing the html and validation when building forms.
Reduce human error by using a consistent/tested utility.
This project was first release to the open source community on April, 24 2009 at
//PFBC 3.x PHP 5 >= 5.3
session_start();
include($_SERVER["DOCUMENT_ROOT"] . "/PFBC/Form.php");
$form = new PFBCForm("GettingStarted");
$form->addElement(new PFBCElementTextbox("My Textbox:", "MyTextbox"));
$form->addElement(new PFBCElementSelect("My Select:", "MySelect", array(
"Option #1",
"Option #2",
"Option #3"
)));
$form->addElement(new PFBCElementButton);
$form->render();
//PFBC 3.x PHP 5
session_start();
include($_SERVER["DOCUMENT_ROOT"] . "/PFBC/Form.php");