javascript - How do i get values of the checked check boxes and perform an action on each of them in codeigniter?
962
<input type="checkbox" value="<? echo $user->roll_no ?>" name ="user[]" /></td>
What does the array 'user' store and how do i perform action on each of the element of the array?? What should be the code in model, view and controller for this??
Answer
Solution:
I would use a simple php foreach statement. The array stores the value you're echoing in the html above. Only the checked checkboxes are sent during the form submit.
Answer
Solution:
In controller