Brimbox Logo Brimbox Version 2.3.4 Released


Outputs a Brimbox submit button with definable Javascript onClick handler.

Class: bb_forms, called as $main

File: bb_forms.php (php)


function echo_script_button($name, $params = array())



Outputs: A standard Brimbox button called with a custom Javascript submit.

Note: It is necessary to use parameters passed through $params in all cases. Parameters not defined below are outputted as tag attributes.

Parameter: $name (string)
Name of button, not currently used or uniformly supported in modern browsers.

Parameter: $params (array)
Array of parameters to pass, javascript function or code must be defined. Typically Javascript function will call bb_submit_form();

Reserved Parameters:

  • label, button label (string)


Updated: 2016-07-08