Re: QuickForm addGroupRule Question

From: Date: Mon, 29 Aug 2005 07:29:42 +0000
Subject: Re: QuickForm addGroupRule Question
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20611@lists.php.net to get a copy of this message
Hi, Pete Soderling wrote:
I am trying to get group validation to work but am having trouble (I assume) with the addGroupRule syntax. Here is some sample code: $form->addGroupRule('jobCompGroup', array('jobComp' => array('Please enter a company name', 'required', NULL, 'client'))); However, the addGroupRule command doesn't appear to be processing correctly. There is no error generated, yet the javascript popup does not show the required notice for the 'jobComp' element. Is there something I'm missing?
Yes, you are missing one array() construct, look closely at the examples.

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