Re: Quickform error handling
| From: | Bertrand Mansion | Date: | Mon, 10 Mar 2003 14:19:00 +0000 |
| Subject: | Re: Quickform error handling | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4130@lists.php.net to get a copy of this message | ||
<hwheinen@4worx.nl> wrote :
> Hi,
>
> been working with the HTML_Quickform. Tackled almost everything but are
> there any nice functions available for retrieving the error messages after
> validation whithout having to access the member _errors directly or looping
> trough all elements and calling getElementError?
>
> In the examples I don't see any error handling/display code...
You mean something like getFormErrors() ? This can easily be added to return
$_errors. At the moment, errors are automatically displayed in the
templates, you don't need to care about them.
Bertrand Mansion
Mamasam