HTML_QuickForm Error Rendering / Top of Page
| From: | Sarah Gray | Date: | Mon, 18 Oct 2004 17:37:49 +0000 |
| Subject: | HTML_QuickForm Error Rendering / Top of Page | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-14957@lists.php.net to get a copy of this message | ||
Hello,
I remember reading about this at some point before I needed it, but a
web /archives search isn't helping me find my source. Apologies in
advance if I've missed an obvious resource on this.
Using HTML_QuickForm, is there a way to print out error messages at the
top of the form (or some other designated 'general error' area) rather
than attached to each specific element? Sometimes there are general
error messages I would prefer to print at the top of a large form than
connected to any of the form elements.
I see that there is an error array {$form.errors} we can access and
could use this to print out errors wherever. Is there any reserved
element name that is not connected to a specific element? Or a simple
way to turn of individual error messaging in favor of printing all the
errors in one designated place?
Thanks in advance,
s.