# XoopsFormLabel

**Definition**

```php
XoopsFormLabel($caption="", $value="")
```

**Usage** This class prints a label, which is really just a piece of text.

This can be used with good effect instead of a XoopsFormText field if you do not want the field to be editable, e.g. in the case of an editing of a form, where you want to keep data from the first input and let it be transparent to the user, that the data is saved. back to Main Page

![](/files/-MPw6tQFwwXNGcK2-2uM)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xoops.gitbook.io/xoops-modules-cookbook/form-classes/forms/xoopsformlabel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
