Skip to content
This repository was archived by the owner on Dec 22, 2020. It is now read-only.

Latest commit

 

History

44 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

PhpLiteFormBuilder

PhpLiteFormBuilder is lite library for manipulating (creating and processing) forms in php.

Basic form:

$form = new Form('myForm', 'post', 'action_file.php');

$form->addElement(new InputText())->setName('name')->setId('name')->setLabel(new Label('Name:'));
$form->addElement(new InputSubmit())->setValue('Submit');

$form->create();

$form->render();

Getting data:

$mform = Form::getForm('myForm');

if ( $mform instanceof Form)
  if ( $mform->isValid() ) {
    $data = $mform->getData();
    $name = $data['name'];
  }

About

PHP Lite FormBuilder

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages