I managed to retrieve user's data from database and populate a form for future updates. With my view in place and data loaded on the fields, I have an update button that calls my controller for validation. Apparently, form_validation->run() is returning false. Below is my view, I do the same for name and last name:
//
//EMAIL
//
$data_email= array( 'name' => 'email',
'placeholder' => '',
'value' => $account->email,
'class' => 'span12',
'rules' => 'required',
'style'=> 'font-size:18px;');
$email = array('class' => '',
'style' => 'font-weight:bold;');
echo form_label('Email: ','email', $email);
echo form_input($data_email);
//
//END OF EMAIL
//
Below is my controller
$this->form_validation->set_rules('fname', 'First Name', 'required|trim|xss_clean');
$this->form_validation->set_rules('lname', 'Last Name', 'required|trim|xss_clean');
$this->form_validation->set_rules('email', 'Email','required|trim|xss_clean|valid_email|is_unique[accounts.email]|is_unique[temp_accounts.email]');
at this point form_validation->run() returns an false, unable to validate the data from the form. Any suggestions will be really appreciated.