php - Howto see if form fields are identical in Zend framework -


this question has answer here:

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

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -