Addrule not working
| From: | zia mohaddes | Date: | Tue, 25 May 2010 13:23:04 +0000 |
| Subject: | Addrule not working | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-30562@lists.php.net to get a copy of this message | ||
Hello everyone,
I am currently using addrule in my quickform as follows to do the following:
$this->form->addRule('dob1', 'Date of Birth is required',
'required');
$this->form->addRule(array('dob1', 'dob2'), 'Date of Birth fields
must
match', 'compare');
but unfortunately this doesn't work at all? Am i missing something??
Thank you kindly for your help in advance!
regards,
zia