how can i update checkbox id to database?

how can i update checkbox id to database?

<input type="checkbox" id="checkAddress" onclick="checkAddress(this)"/>
function checkAddress(checkbox)
        {
            if (checkbox.checked)
            {




//here i have checked the checkbox,if it is checked i want to update the checkbox result to database alert("a"); }

        }
 so i want to update the checkbox id or value to database..how can i do this??