How to get ID of selected checkbox of two pages?

Hi ,

I have used pagination links, and showing all Items details in different
pages with checkboxes. all checkboxes have same name. now i want item id
with selected checkboxes, and problem is that becoz of different pages
as i move to next page first page selected checkboxes becomes
unselected, and i got last selected checkbox item.

tell me how can i got all selected value from different pages?