Function for rendering the checkbox field.
This function renders a checkbox field that is bound to the request variable with the corresponding name.
| Name | Pass type | Value type | Default value | Description |
|---|---|---|---|---|
| $parameters | by value | array |
The array of parameters as an associative array in the form key => value:
Any other attributes may be specified. Example:
|
|
| $echo | by value | bool | true |
If the value of $echo is true, the html code of the field is directly echoed. Otherwise it is returned as string. It might be useful to pass this code to other rendering functions instead of echoing. |
If the paramter $echo is true, the string of the field html code is returned, otherwise null.