Home » HTML » HTML_QuickForm » Bug #2609
impossible to addGroupRule with two elements like compare
Details
| Submitted | 2004-10-25 08:54 UTC |
|---|---|
| From | mirko dot c at terasonline dot com |
| Status | Duplicate |
| Package | HTML_QuickForm |
| PHP Version | Irrelevant |
| OS | irrilevant |
| Roadmaps | (Not assigned) |
Comments
[2004-10-25 08:54 UTC] mirko dot c at terasonline dot com
Description:
------------
I need to compare two element of different group but i can't do.
in other words how can i use compare rule on two element of different group?
Thanks
Mirko
Reproduce code:
---------------
/* This code works fine in a non group element*/
$_frm->addRule(array('uname','passwd'), 'UNAME or PASSWORD no correct. Retry', 'login');
/* if uname and passwd are element of different group ????*/
/*this is an addGroupRule that works fine but it have only one element */
$rules['grp01']['uname'][] = array('Non hai inserito il NOME UTENTE', 'required', null, 'client');
$_frm->addGroupRule('grp01',$rules['grp01']);