HTML_QuickForm::setElementError()

HTML_QuickForm::setElementError()

HTML_QuickForm::setElementError() -- Set error message for a form element

Description

Set error message for a form element. Errors are usually assigned to elements by validate() method. Use this if you need to explicitly set error message for an element.

Parameter

string $element

Name of form element to set error for

string $message

Error message

Throws

throws no exceptions thrown

Note

since 1.0

This function can not be called statically.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.