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

# XoopsSimpleForm

**Definition**

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

**Usage** Inherits from XoopsForm and will render the form with no tables and minimal formatting.

**Full Example:**

```php
include XOOPS_ROOT_PATH."/class/xoopsformloader.php";
$form = new XoopsSimpleForm('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%2F95960bc2d0bcedcc771cb2d3161cd4164ee3f058.png?generation=1609473962264336\&alt=media)
