Form checkbox
void
addCheckBox
( $name, [ $checked = false], [ $value = null], [ $extra_attributes = ''])
-
$name
-
$checked
-
$value
-
$extra_attributes
Make a <form> start-tag.
void
addForm
(string $action, [string $method = 'post'], [string $name = ''], [string $enctype = ''], [string $charset = ''], [string $extra = ''], [mixed $add_token = FALSE])
-
string
$action
-
string
$method
-
string
$name
-
string
$enctype
-
string
$charset
-
string
$extra: Any other attributes can be added with this parameter; they should use double quotes around attribute values (OPTIONAL; default empty)
-
mixed
$add_token: When given as a string or as boolean TRUE, a hidden input is also added to the form containing a security token. When given as TRUE, the input name is "smtoken"; otherwise the name is the string that is given for this parameter. When FALSE, no hidden token input field is added. (OPTIONAL; default not used)
A hidden form field.
void
addHidden
( $name, $value)
An input textbox.
void
addInput
( $name, [ $value = ''], [ $size = 0], [ $maxlength = 0], [ $extra_attributes = ''])
-
$name
-
$value
-
$size
-
$maxlength
-
$extra_attributes
Helper function to create form fields, not to be called directly, only by other functions below.
void
addInputField
( $type, [ $name = null], [ $value = null], [ $attributes = ''])
-
$type
-
$name
-
$value
-
$attributes
Password input field
void
addPwField
( $name, [ $value = null], [ $extra_attributes = ''])
-
$name
-
$value
-
$extra_attributes
Form radio box
void
addRadioBox
( $name, [ $checked = false], [ $value = null])
Form reset button, $value = caption
void
addReset
( $value)
Function to create a selectlist from an array.
Usage: name: html name attribute values: array ( key => value ) -> <option value="key">value</option> default: the key that will be selected usekeys: use the keys of the array as option value or not
void
addSelect
( $name, $values, [ $default = null], [ $usekeys = false])
-
$name
-
$values
-
$default
-
$usekeys
Form submission button
Note the switched value/name parameters!
void
addSubmit
( $value, [ $name = null], [ $extra_attributes = ''])
-
$value
-
$name
-
$extra_attributes
Textarea form element.
void
addTextArea
( $name, [ $text = ''], [ $cols = 40], [ $rows = 10], [ $attr = ''])
-
$name
-
$text
-
$cols
-
$rows
-
$attr