oto kod:
<?php // tworze elementy formularza do dodawania nowego usera. $this->form = new HTML_QuickForm("$this->moduleName"); // dodawanie pol. // dodawanie validacji $this->form->addRule('user', 'Podaj nazwe usera.', 'required', null, 'client'); $this->form->addRule('password', 'Podaj hasło.', 'required', null, 'client'); // DODAJE FILTR. $this->form->applyFilter('password', 'md5'); if($this->form->validate()) { $this->addRekordFromPost(); // przeladowanie $this->reloadPage(); } else { $this->form->addElement('submit', null, 'Dodaj'); $this->form->display(); } ?>
Problem polega na tym, że filtr nie działa, zmienna powinna zostać zakodowana jako MD5, jednak tak się nie dzieje. Pomocy.