PEAR Manual
Prev |  | Next

# HTML_QuickForm::process()

HTML_QuickForm::process() -- Performs the form data processing

## Synopsis

    require_once 'HTML/QuickForm.php';

``void HTML_QuickForm::process` (mixed $callback [, bool $mergeFiles = `TRUE`])`

## Description

Performs the form data processing. It actually calls the `$callback` passing the submitted values (and files, when `$mergeFiles`=`TRUE`) to it.

## Parameter

mixed `$callback`

  Callback, either function name or array(&$object, 'method')

boolean `$mergeFiles`

  Whether uploaded files should be processed too

## Throws

Table 41-1. Possible PEAR_Error values

Error code | Error message | Reason | Solution
--- | --- | --- | ---
`QUICKFORM_INVALID_PROCESS` | Callback function does not exist in QuickForm::process() | Tried to pass a name of a non-existant function as a callback | Check spelling

## Note

since 1.0

This function can not be called statically.

Prev | Home | Next
HTML_QuickForm::getSubmitValues() | Up | HTML_QuickForm_Controller