# 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)
