-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Simon Ratay / Šimon Rataj edited this page Dec 9, 2018
·
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 = "", $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 ?>