function przypomnij_haslo() { if(isset($_POST['email'])) { $fields = array( 'email' => array( 'reguired' => true, 'regxp2' => '[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}', 'length_min' => 6, 'length_max' => 128, 'db' => array('table'=>'customers','field'=>'email'), 'dbrequired' => true ) ); $this->validationFields($fields,$_POST,'contents'); if($this->valid) $this->remaindPassword(); } $this->contents->display('forms/remain_password.html');