Welcome Guest, Not a member yet? Register   Sign In
update from array values
#3

[eluser]Kamusksn[/eluser]
Got it, now I have a trouble since yesterday...

I have the input checkbox "delete[]" to delete the row if is check, or update if not.

I'm looking that if I don't mark the checkbox there is no value to pass to the array that means.

I have 3 rows, I select one checkbox my

Code:
$data['delete'] = $this->input->post('delete');

will show this ouput, skipping the other values

Quote:Array (0 => on)

What I want to do is use isset to check every item on the array delete[] and if not has value, give them a value of 0. how can I do that or what is the best way to handle this on codeigniter?


Messages In This Thread
update from array values - by El Forum - 05-13-2014, 12:38 PM
update from array values - by El Forum - 05-13-2014, 01:56 PM
update from array values - by El Forum - 05-14-2014, 08:03 AM
update from array values - by El Forum - 05-14-2014, 12:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB