(08-09-2016, 05:32 AM)InsiteFX Wrote: Maybe read the CodeIgniter Users Guide on the Form Helper form_dropdown()
Yes, I already read the user guide but do not know how to fix the model.
models/Mpages.php
PHP Code:
public function add_user()
{
$data = array(
'username' => $this->input->post('username'),
'email' => $this->input->post('email'),
'password' => $this->input->post('password'),
'role' => $this->input->post('email')
);
}
I should change the role into something else since it is a dropdown box.
PHP Code:
'role' => $this->input->post('email')
" If I looks more intelligence please increase my reputation."