> For the complete documentation index, see [llms.txt](https://xoops.gitbook.io/xoops-modules-cookbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xoops.gitbook.io/xoops-modules-cookbook/form-classes/forms/xoopsform.md).

# XoopsForm

## Definition

```php
XoopsForm( string $title, string $name, string $action, string $method = "post" )
```

## Most Important Methods

* addElement() - Add an XOOPS Form Element to the form
* assign() - assign to smarty form template instead of displaying directly
* display() - displays rendered form
* render() - returns renderered form

![](https://879096944-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M5_mFcvcxsA3M1QhbWd%2Fsync%2F76ec4aa94cc9660a26c2394368507e717030b085.png?generation=1609473961163852\&alt=media)
