PEAR Manual
Prev |  | Next

# HTML_QuickForm_element::setValue()

HTML_QuickForm_element::setValue() -- Sets the value of the form element

## Synopsis

    require_once 'HTML/QuickForm/element.php';

``void HTML_QuickForm_element::setValue` (mixed $value)`

## Description

This sets the display value for the element. It can be different from its submit value.

## Parameter

mixed `$value`

  Default value of the form element

## Throws

throws no exceptions thrown

## See

see getValue().

## Note

since 1.0

This function can not be called statically.

Prev | Home | Next
HTML_QuickForm_element::setPersistantFreeze() | Up | HTML_QuickForm_element::unfreeze()