I'm facing the following problem. I have a overview of users, and I want a possibility to delete multiple users. So if i check user 1 (userid 1) and user 2 (userid 2) they will both delete.
I want to set this in my URL like: localhost/cms/users/multipledelete/1&2, so with an &.
My delete works allready when i put that url hard in my browser. In my javascript i've the following code:
$('.checkbox').click(function() {
if($(".checkbox").length == $(".checkbox:checked").length) {
$("#checkall").prop('checked', this.checked);
} else {
$("#checkall").removeAttr("checked");
}
});
And in my index i've set up the follow code:
<td>
<input type="checkbox" class="checkbox" name="check_list[]" value="<?php echo $user->id; ?>"/>
</td>
<td> ....... </td>
And beneath my overview my recyclebin where i want to set the url to: multipledelete/1&2
<a href="<?php echo $this->url('zfcadmin/user', array('action'=>'multipledelete', 'id'=>'1&2'));?>">
<i class="icon-trash"></i>
</a>
So where 1&2 is, i want the current checked checkboxes. How can i fix this?