PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_QuickForm » Bug #2609

impossible to addGroupRule with two elements like compare

Details

Submitted2004-10-25 08:54 UTC
Frommirko dot c at terasonline dot com
StatusDuplicate
PackageHTML_QuickForm
PHP VersionIrrelevant
OSirrilevant
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']);