title: Making URL out of checkbox values. mvcPattern
body: <p>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. </p>
  
  <p>I want to set this in my URL like: <code>localhost/cms/users/multipledelete/1&amp;2</code>, so with an &amp;amp. </p>
  
  <p>My delete works allready when i put that url hard in my browser. In my javascript i've the following code:</p>
  
  <pre><code>    $('.checkbox').click(function() {
      if($(".checkbox").length == $(".checkbox:checked").length) {
              $("#checkall").prop('checked', this.checked);
          } else {
              $("#checkall").removeAttr("checked");
          }                     
  });
  </code></pre>
  
  <p>And in my index i've set up the follow code:</p>
  
  <pre><code>&lt;td&gt;
  &lt;input type="checkbox" class="checkbox" name="check_list[]" value="&lt;?php echo $user-&gt;id; ?&gt;"/&gt;
  &lt;/td&gt;
  &lt;td&gt; ....... &lt;/td&gt;
  </code></pre>
  
  <p>And beneath my overview my recyclebin where i want to set the url to: multipledelete/1&amp;2</p>
  
  <pre><code>              &lt;a href="&lt;?php echo $this-&gt;url('zfcadmin/user', array('action'=&gt;'multipledelete', 'id'=&gt;'1&amp;2'));?&gt;"&gt;
                     &lt;i class="icon-trash"&gt;&lt;/i&gt;
                &lt;/a&gt;
  </code></pre>
  
  <p>So where 1&amp;2 is, i want the current checked checkboxes. How can i fix this? </p>