HTML_QuickForm::setDefaults()

HTML_QuickForm::setDefaults()

HTML_QuickForm::setDefaults() -- Sets default form values

Description

Sets default form values. There are overriden by either constant (set via setConstants()) or submitted (POST or GET) values.

Parameter

array $defaultValues

values used to fill the form, array('element name' => 'element value')

mixed $filter

(optional) filter(s) to apply to all default values

Note

since 1.0

This function can not be called statically.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.