public function add() { if ($this->input->post('add')) { $this->form_validation->set_rules('login', '<strong>Login</strong>', 'trim|required|xss_clean|is_unique[users.login]'); $this->form_validation->set_rules('name', '<strong>Ksywa</strong>', 'trim|required|xss_clean'); $this->form_validation->set_rules('password', '<strong>Hasło</strong>', 'trim|required|xss_clean|callback__html2txt'); $this->form_validation->set_rules('password_confirm', '<strong>Potwierdzenie hasła</strong>', 'trim|required|xss_clean|callback__html2txt|matches[password]'); $this->form_validation->set_rules('type[]', '<strong>Typ Użytkownika</strong>', 'trim|required|xss_clean'); $this->form_validation->set_rules('displayed', '<strong>Wyświetlanie</strong>', 'trim|required|xss_clean'); if ($this->form_validation->run() == FALSE){ $data['errors'] = validation_errors(); $this->load->view('presentersadd', $data); } else { $data['login'] = $this->input->post('login'); $data['name'] = $this->input->post('name'); $data['displayed'] = $this->input->post('displayed'); $data['regards'] = $this->input->post('type[regards]'); $data['online'] = $this->input->post('type[online]'); $data['seasonshedule'] = $this->input->post('type[seasonshedule]'); $data['kicker'] = $this->input->post('type[kicker]'); $data['hitlist'] = $this->input->post('type[hitlist]'); $data['info'] = $this->input->post('type[info]'); $data['recruitment'] = $this->input->post('type[recruitment]'); $data['news'] = $this->input->post('type[news]'); $data['type'] = 2; $this->Presenters_model->addUser($data); redirect('presenters/index'); } } else $this->load->view('presentersadd'); }
html jest zbędny chyba

Bardzo proszę was o pomoc z rozwiązaniem tego.. Pola check box to type[]