> 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.

![](/files/-MPw6u6xfwV5zq5KaV0N)
