Method to check if postback form variable is different from the form variable saved in state or
Class: bb_work, called as $main
File: bb_work.php (php)
function changed($name, $module, $arr_state, $default = "")
$test = $main->changed($name, $module, $arr_state, $default);
Returns: boolean true if they are different, false if both variables are the same. If the postback (
$POST) variable or the state variable (
$arr_state) are not set
$default is used in their place.
The form variable name.
The module, usually the current module.
The state array, usually called
The default variable for both the state and form variables. If both variables are not set then
$default == $default and changed is false.