submitting multiple rows to database with one form in codeigniter

sciencechick

New Member
I'm trying to create a bulk edit page for an app that I'm working on. The table contains rows of products each of which have three editable fields. \[code\]<tr> <input type="hidden" name="id" value="http://stackoverflow.com/questions/3824723/10"> <td>SKU<td> <td>Product Name</td> <td> <select name="product_category" value="" tabindex="4"> <option value="http://stackoverflow.com/questions/3824723/1">Category 1</option> <option value="http://stackoverflow.com/questions/3824723/2">Category 2</option> </select> </td> <td><input type="text" name="current_inventory" class="short" value="http://stackoverflow.com/questions/3824723/15" tabindex="5"></td> <td><input type="text" name="inventory_alert" class="short" value="http://stackoverflow.com/questions/3824723/6" id="inventory_alert" tabindex="6"></td></tr>\[/code\]Every row can be edited and there is one submit button on the page. How should I format this correctly so that I can update each entry in the database with the values? Thanks.
 
Back
Top