Skip to content

GreyMage/php-form-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

php-form-helper

This code is intended for personal use, however if you find it useful, please consider donating!

Donate

Example Implementation

$fb = new formBuilder();
$fb->add(new formElement("Company Name"));
$fb->add(new formElement("Company Address"));
$fb->add(new formElement("Company Contact"));

$fg = new formGroup("Primary Industry");
$cbdeault = array("type"=>"checkbox");
$fg->add(new formElement("Screen printing","op1",$cbdeault));
$fg->add(new formElement("Embroidery","op2",$cbdeault));
$fg->add(new formElement("Sign making","op3",$cbdeault));
$fg->add(new formElement("Awards","op4",$cbdeault));
$fg->add(new formElement("Sublimation","op5",$cbdeault));
$fg->add(new formElement("Direct to garment","op6",$cbdeault));
$fg->add(new formElement("Promotional items","op7",$cbdeault));
$fg->add(new formElement("Other","op8",$cbdeault));
$fb->add($fg);

$fb->add(new formElement("Whatever"));
$fb->add(new formElement("You"));
$fb->add(new formElement("Want"));
$fb->add(new formElement("Really"));

$fb->addAsButton(new formElement("Submit"));

echo $fb->getHTML();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages