Skip to content

Bootstrap 3

Simon Ratay / Šimon Rataj edited this page Dec 9, 2018 · 3 revisions

Welcome to the btrpsForms wiki!

First include the forms_BT3.php file.

Create class:

$form = new BtrpsForm($sendBtnText)

Add fields:

`$form->addField($name, $label, $type, $defaultValue = "", $icon = "user", $placeholder = "", $required = false, $autocomplete = true);`

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