# XoopsThemeForm

**Definition**

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

**Usage** Inherits from XoopsForm and will render the form using tables and current theme stylesheet.

**Full Example:**

```php
include XOOPS_ROOT_PATH."/class/xoopsformloader.php";
$form = new XoopsThemeForm('Title of form', 'formname', 'targetpage.php', 'POST');
$form->addElement(new XoopsFormText('Field Label:', 'fieldname'));
$form->display();
```

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