RE: [PEAR] Getting all errors in HTML_QuickForm

From: Date: Thu, 02 Aug 2007 09:51:03 +0000
Subject: RE: [PEAR] Getting all errors in HTML_QuickForm
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27782@lists.php.net to get a copy of this message
> > Is there a way to get all the errors generated upon submission all at > > once? I know you can use getElementError() but unless I iterated > > through all the elements calling that function (not ideal), I can't > > see any other way to get all the errors. > > Any pointers would be greatly appreciated. > HTML_QuickForm is sooo PHP4: Well, 2 comments about this: * Presumably HTML_QuickForm2 behaves identically (or nearly identically) to HTML_QuickForm since HTML_QuickForm2 is just a PHP5 rewrite. Am I wrong about this? * HTML_QuickForm2 has virtually NO documentation. Whether or not I am right regarding the point above, I felt it would be better for me to learn HTML_QuickForm first as it has documentation, examples and tutorials. So if I was right, it would be easy enough to switch. If I was wrong, I wouldn't be wasting a ton of time beating my head against the wall trying to figure something out, only for it to end up being me doing something horribly wrong because it was so poorly documented. > $errors = $form->_errors; Thanks. Chris

« previous php.pear.general (#27782) next »