Re: registerrule calls a function that needs multiple variables
| From: | Alexey Borzov | Date: | Mon, 30 Nov 2009 19:11:30 +0000 |
| Subject: | Re: registerrule calls a function that needs multiple variables | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-30178@lists.php.net to get a copy of this message | ||
Hi Andrea,
Andrea Bakker wrote:
I am using a quickform for user login whereby the user enters username and password. I want to define a rule that validates the username / password combination against the database, but can't seem to find how to pass both parameters to the function.You need addFormRule() for adding such rules: http://pear.php.net/manual/en/package.html.html-quickform.html-quickform.addformrule.php