Skip to content
ratajs edited this page Jun 17, 2017 · 12 revisions

Welcome to the btrpsForms wiki!

First include the forms.php file.

Create class:

$form = new BtrpsForm($sendBtnText)

Add fields:

`$form->addField($name, $label, $type, $defaultValue, $icon, $placeholder, $required);`

In case of type of radio or select type, write array of options, where key is value to send and value is label, instead of defaultValue.

Where all fields you want are added, print them with: print $form; or <?=$form ?>

Clone this wiki locally