QuickForm error formatting
| From: | James Reinke | Date: | Wed, 26 Apr 2006 00:48:21 +0000 |
| Subject: | QuickForm error formatting | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-23833@lists.php.net to get a copy of this message | ||
Greetings all.
Just wanted to say I appreciate your helpfulness over the last few weeks. I've posted some
questions and there have been some great responses that have helped a lot. That being said, let me
get to the nitty gritty.
My problem arises in the way I format the error codes.
I have a bunch of forms, submitted across tons of pages. It's working great using sessions and
HTML QuickForms for individual pages. The problem arises in the formatting of the error codes
though.. This is happening because unfortunately there is a lot of unique code for many of the
fields. So the layout of the QuickForm is lots of addElement('input', ....) fields,
followed by scattered addElement('static', ....). Because I'm inserting so many
static elements, when the form validates, it shoots out the error at the top of the form. I'm
thinking right now it could probably be done by using individual addElement fields for every input
field. I'd just like to clean it up and have more control over where the error fields are
printed out, and with all the static content it looks like I'll be making all of the
addElement's unique, and include the static content that way. That sound like what you guys
would do? Please advise and thanks in advance.
_____________________
James Reinke
CLEVERSAFE
http://www.cleversafe.org
jreinke@cleversafe.com
_____________________