2010-04-28 45 views
0

在Zend框架(1.10)我要檢查,如果兩個輸入字段與 我在表格下面的代碼:HOWTO看看錶單字段相同Zend框架

$this->addElement('password', 'password', array(
     'label'  => 'Wachtwoord:', 
     'required' => true 
    ) 
); 

$this->addElement('password', 'verifypassword', array(
     'label'  => 'Bevestig wachtwoord:', 
     'required' => true, 
    ) 
); 

我已經tryed的「相同」的驗證器,但我沒有得到它的工作。

+0

類相同的驗證應該效果很好,跟你有什麼問題? – 2010-04-28 21:26:47

+0

已經在這裏回答:http://stackoverflow.com/questions/347856/zend-form-how-to-check-2-fields-are-identical – 2010-04-28 21:20:43

回答