Forms displaying multiple times using for each loop |
(11-16-2016, 06:07 AM)php_rocs Wrote: @sheenam - it appears that when you click the edit button for a specific taxid. You are not passing the specific taxid to your model to only pull that specific record. Instead you are getting all the records. Your call to the edit controller should include the taxid that you wish to edit. Your model function should have a taxid parameter and only return 1 record. ok ok but my edit button and the form m opening both redirect to different functionalities how can i pass ids. thru the button edit edit button : <td><a data-toggle="modal" data-target="#editModal">Edit</i></a></td> and edit form: <?php echo form_open("settings/tax/updatetaxes?t_id=".$row->t_id,['class'=>'form-horizontal panel' , 'method'=> 'POST']); ?> <div class="form-group"> |
Welcome Guest, Not a member yet? Register Sign In |