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

# XoopsFormText

**Definition**

```php
XoopsFormText( string $caption, string $name, int $size, int $maxlength, string $value = "" )
```

**Usage** XoopsFormText adds a normal text field.

This element inherits from XoopsFormElement as all other XoopsForm elements and is one of the easiest elements to use.

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