Re: Interesting Quickform question

From: Date: Wed, 12 Sep 2007 17:48:21 +0000
Subject: Re: Interesting Quickform question
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27911@lists.php.net to get a copy of this message
On 9/11/07, Mr. Man <nickman@freemail.hu> wrote: > Dear All, > I'd like to ask you a small question. How can I echo an error message, if any error > happened with the rules? > > I mean, that for example, I set a setElementError. If the error happened, I echo the erro > message with getElement error. > > But I'd like to make, that if _any_ of the elements have error, then an error message will > show on the page. This error message can be a php echo, or a static QF element, whatever. > > I tried with "__ALL__" but if I'm right it's only for the filters, so it > didn't work. > > thanks for your help and input, if (!$form->validate()) { echo 'invalid'; } -- Justin Patrin

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