HTML_QuickForm_group::setElements() | |
PEAR Manual | |
require_once 'HTML/QuickForm.php'; |
void HTML_QuickForm::setDefaults (
array $defaultValues = NULL
, mixed $filter = NULL
)
Sets default form values. There are overriden by either constant (set via setConstants()) or submitted (POST or GET) values.
values used to fill the form, array('element name' => 'element value')
(optional) filter(s) to apply to all default values
Error code | Error message | Reason | Solution |
QUICKFORM_INVALID_FILTER | Callback function does not exist in QuickForm::setDefaults() | Tried to pass a name of a non-existant function as a callback | Check spelling |
since 1.0
This function can not be called statically.
HTML_QuickForm_group::setElements() | |
PEAR Manual | |