/ Published in: PHP

Within your view, you place something like:
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if ($this->form_validation->run() === TRUE) { // save data $this->session->set_flashdata('message', 'New Contact has been added'); redirect(current_url()); } $this->load->view('contacts/add', $this->data);
Comments
