CodeIgniter - Post multiple arrays to controller
- by Bobe
I have a dynamically generated form that allows users to enter new data and edit existing data. When the form is submitted, it collates the input values and groups them according to whether they are new or not, the former being denoted by class="new-entry".
So the function generates two arrays: updateData and insertData. Both arrays are of similar…