On Wednesday 30 September 2009 10:18 AM, Leon_L wrote:
Hi, I'm new to Zend Framework, I have a question is that if I have two
Zend_Form_Element_Text in a form, and I want make either of them to be
filled by the user.
For example, phone number and mobile number. People only need enter one of
them to continue.
How am I going to do this? Thanks
Write a custom validator and use the $context variable. The reference
manual has an example custom validator.
--
With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net,
Personal: http://sudheer.net