> 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/xoopsthemeform.md).

# 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();
```

![](/files/-MPw6uZ7sFPsFZpkkuRc)
