Call controller from submit button with CodeIgniter

Freerilopzimek

New Member
I'm loading a view and I'm passing 2 arguments from a controller like this:\[code\]$this->load->view('confirm_data_v', $data);\[/code\]In confirm_data_v view I'm receiving $data that is an array. In confirm_data_v I have a Submit button, but I want to call another controller when I click on it. The code of the button in confirm_data_v is: \[code\] <div class = "container"> <div class="form-actions"> <button type="submit" class="btn btn-success">Save</button> </div> </div>\[/code\]confirm_data_v is a view to confirm to the user the information that he gave, so when he clicks "Save" button, it calls the controller to save it to the database.
 
Back
Top