Brimbox Logo Brimbox Version 2.3.4 Released

echo_input>>

Outputs a standard input form object, note that a type checkbox is outputted with an accompanying hidden object to give it unset value of zero.

Class: bb_forms, called as $main

File: bb_forms.php (php)

Declaration:

function echo_input($name, $value = "", $params = array())

Usage:

$main->echo_input($name, $value, $params);

Outputs: A input object for inside a form.

Note: It is routine to use $params to define the input object. Input tag type = checkbox uses the hidden input hack to force input tag to be set to a value of zero when not checked.

Parameter: $name (string)
Name of form input object.

Parameter: $value (string)
Value of input form object

Parameter: $params (array)
Array of parameters to pass.

Reserved Parameters:

  • checked, parameter for "checked" attribute (mixed, if set then checked)
  • readonly, parameter for "readonly" attribute (mixed, if set then readonly)

 

Updated: 2016-07-08