Flash Checkboxes > PHP > MySQL UPDATE

Hello problemsolvers!
So I’ve got some checkboxes in Flash which all have an id tied to them, pulled from a database. All I want to do is loop through the checkboxes, see which ones are checked, and subtract a number from “units” in the database, where the ids match (units=units-1 WHERE id = $_GET[‘id’] – or something).

My biggest dilemma will be the PHP side of things… but all help is greatly appreciated!

Thank you thank you thank you.