QuickForm rule

From: Date: Sat, 14 Aug 2004 10:09:54 +0000
Subject: QuickForm rule
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14109@lists.php.net to get a copy of this message
Hello All. Can anyone please give me some advice on the following: I want to create a simple rule for validating an element on a form (the rule is a php function). Is this the correct way to do it: function myFunction() { .... .... } $form->registerRule('myRule', function, 'myFunction'); $form->addRule('nameBox', 'message', 'myRule'); The real question is, is there any way I can get this to work on the client: $form->addRule('nameBox', 'message', 'myRule', '', 'client'); Thanks sawan

« previous php.pear.general (#14109) next »