# newt_run_form

(PECL newt >= 0.1)

newt_run_form — Runs a form

### 说明

newt_run_form ( resource `$form` ) : resource

This function runs the form passed to it.

### 参数

`form`

  Form component

### 返回值

The component which caused the form to stop running.

> Note:

> Notice that this function doesn't fit in with newt's normal naming convention. It is an older interface which will not work for all forms. It was left in newt only for legacy applications. It is a simpler interface than the new newt_form_run() though, and is still used quite often as a result. When an application is done with a form, it destroys the form and all of the components the form contains.

### 参见

- newt_form_run() - Runs a form
- newt_form_destroy() - Destroys a form