I'v tried solution i found here in forum but it wont work for me.

So, my code looks is:
$form->addElement('ValidationTextBox', 'password', array ( 
            'value' => $webmasterData [ 0 ] [ 'password' ] , 
            'label' => 'Password' , 
            'maxlength' => 20 , 
            'regExp' => '\w{6,}' , 
            'required' => true , 
            'invalidMessage' => 'Password must be longer then 6 characters.'
, 
            'filters' => array ( 
                'StringTrim' , 
                'StringToLower'
        ) , 'validators' => array ('NotEmpty', array ('StringLength' , true
, array (6 , 20) ) , array ('Regex' , true , array ('/\w+/i'))) 
        ))->addElement('ValidationTextBox', 'repeatpassword', array ( 
            'label' => 'Repeat Password' , 
            'maxlength' => 20 , 
            'required' => true , 
            'filters' => array ( 
            'StringTrim' , 
            'StringToLower' 
        ) , 'validators' =>  array ( 
            'Identical' , 'password'
        ) 
        ))

This wont work, and i can enter whatever i want in Repeat Password field.
How to fix that?
Thanks,
V
-- 
View this message in context: 
http://www.nabble.com/Validation-against-another-field-in-zend-dojo-form-tp21052614p21052614.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to