Re: using custom function in object for validation rule in HTML_QuickForm
| From: | Massimiliano Arione | Date: | Fri, 11 Mar 2005 15:59:18 +0000 |
| Subject: | Re: using custom function in object for validation rule in HTML_QuickForm | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-17963@lists.php.net to get a copy of this message | ||
Richard Harding wrote:
The register rule I am trying is this: $this->registerRule('processpasswd', 'callback', '$this->process_passwd');Maybe you missed to read manual http://pear.php.net/manual/en/package.html.html-quickform.html-quickform.registerrule.php you must pass object parent of function as 4th parameter -- Massimiliano Arione :: http://www.garak.it/ :: * NO WORD * http://gnu.org/philosophy/no-word-attachments.html * NO HTML * http://efn.no/html-bad.html