$request = Zend_Controller_Front::getInstance()->getRequest(); $password = $request->getParam('password', ''); $this->addElement('password', 'password', array( 'required' => true, 'maxlength' => 15, 'title' => 'Sono ammessi solamente caratteri alfanumerici e @,#,*', 'label' => 'form_User_Register_Label_Password', 'filters' => array('StringTrim'), 'validators' => array( array('stringLength',true, array(2, 25)), array('regex', false, array('#^[^\.<>{};:"£$%\/^&()_\+\-=\]\[]+#'))) )); // Re-Password $repassword = $request->getParam('repassword', ''); $this->addElement('password', 'repassword', array( 'required' => true, 'maxlength' => 15, 'title' => 'Sono ammessi solamente caratteri alfanumerici e @,#,*', 'label' => 'form_User_Register_Label_RePassword', 'filters' => array('StringTrim'), 'validators' => array( array('stringLength',true, array(2, 25)), array('regex', true, array('#^[^\.<>{};:"£$%\/^&()_\+\-=\]\[]+#')), array('identical',false, array($password ,$repassword)) ) )); Thanks in advance. Bye
View this message in context: Validation identical in the form
Sent from the Zend MVC mailing list archive at Nabble.com.
2009年9月7日星期一
[fw-mvc] Validation identical in the form
Hi. What's wrong in this code
订阅:
博文评论 (Atom)
没有评论:
发表评论