Hi,I can't display Multiple checkbox save value in my veiw page.
Here is insert/save value details:
Model
---------
public function saveInstituteOfferdCourse($data = array()) {
if ($this->db->insert('tbl_course_offred', $data)) {
return $this->db->insert_id(); // tbl_course_offred = "Table name"
}
return FALSE;
}
----------
Controller
----------
public function saveCourses() {
$data = array();
$this->load->library('form_validation');
$this->form_validation->set_rules('skill', 'skill', 'require');
if ($this->form_validation->run()) {
$skill = implode(',', $this->input->post('skill'));
$data['skill'] = $skill;
$data['user_id'] = $this->session->userdata('user_id');
$this->user_admin_model->saveInstituteOfferdCourse($data);
redirect("user_admin_controller/showInsSkills");
}
}
-------
view
-------
<form name="form" method="post" action="tambah">
<input type="checkbox" name="skill[]" value="PHP" >PHP</input
<input type="checkbox" name="skill[]" value="VB.NET" >VB.NET</input
<input type="checkbox" name="skill[]" value="C#" >C#</input
<input type="submit" value="Submit" />
</form>
................
I want display value like below site courses.please check the site and give me idea or code.it is very urgent hope anybody help me.
Click Here
please help me master...
Regards,