Re: QuickForm any my own rule?

From: Date: Wed, 13 Jul 2005 07:30:20 +0000
Subject: Re: QuickForm any my own rule?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19957@lists.php.net to get a copy of this message
Martin Klaffenboeck wrote:
Hello! I want to add a new rule: There is a select item 'Type' and another text item 'Company'. Now Type is array('private', 'business'). If the User chooses business, the Company field is required if he chooses private, the Company may be left blank. How can I do this?
I think you should use addFormRule() -- Massimiliano Arione :: http://garak.it :: * No Word * http://gnu.org/philosophy/no-word-attachments.html * No HTML * http://efn.no/html-bad.html

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