Re: QF - addGroupRule() on custom function
| From: | Alexey Borzov | Date: | Tue, 21 Oct 2003 20:44:12 +0000 |
| Subject: | Re: QF - addGroupRule() on custom function | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-8525@lists.php.net to get a copy of this message | ||
Hi!
Ignatius Reilly wrote:
Yes, I have tried that also, but it still passes the array of grouped elements to the custom validation function, not individual elements one by one. BTW, I tried to run the said manual example as is, in order to learn from example, but it seemed to break down on validation: "Fatal error: Call to a member function on a non-object in c:\apache\htdocs\cgi-bin\PEAR\HTML\QuickForm\group.php on line 420" (test file attached)Ugh, see the problem, it is not related to validation... Try renaming the $id array to smth else, when you have register_globals on then the array with such name already exists and is populated with submitted values. Will fix the docs sometime soon, thanks for pointing this out.
Cheers By the way, I find QF an absolutely awesome package. Will soon become (already is?) compulsory learn for any PHP developer.Glad to hear that. ;]