This tutorial shows you how to get values of checkbox array using jQuery. You can use this to send selected checkboxes values with ajax or add those to url variable(like in this example). If you generate a table then you can use checkboxes which values are ids of the rows. Add selected values to url for an example.
I have checkboxes with this code, rest of the html doesn't have to do anything with this tutorial so I leave it out.
Source code viewer
<input type="checkbox" name="cid[]" value="<?= $row['id'] ?>" CHECKED />Programming Language: HTML
This function allows you to get all of checked checkboxes values. Puts them in string, values are separated with commas and the string is returned.
Source code viewer
<script type="text/javascript"> $().ready(function() { jQuery.checked_rows = function() { var ids = ''; $.each($("input[name='cid[]']:checked"), function() { ids += (ids?',':'') + $(this).attr('value'); }); return ids; }; }); </script>Programming Language: Javascript
This is is the way you can use this function. You can put values in link as variable and catch it with get. You can also send the values through ajax, but in that case you can send form fields as well, so I see no point in that unless you have lot of data. If you send strings like this then you might have to escape the characters.
Source code viewer
Programming Language: HTML