I would use Javascript for something like this. Much easier and saves you from having to reload the whole page.
As for your code, when using multiple checkboxes you need to create an array by calling each something like check[1] and check[2] then on the next page/page reload you can grab the value from each array and do your calculations.
Again, JS is your friends here.
A