php - Howto see if form fields are identical in Zend framework -
this question has answer here:
- zend_form: how check 2 fields identical 4 answers
in zend framework (1.10) want check if 2 input fields identical have following code in form:
$this->addelement('password', 'password', array( 'label' => 'wachtwoord:', 'required' => true ) ); $this->addelement('password', 'verifypassword', array( 'label' => 'bevestig wachtwoord:', 'required' => true, ) );
i tryed "identical" validator, did'nt got work.
you can use custom validation filter accomplish this.
http://framework.zend.com/manual/en/zend.form.elements.html
the documentation outlines describing, under note: validation operates on filtered values class called my_validate_passwordconfirmation
Comments
Post a Comment