how can i assign checkbox id to database?

how can i assign checkbox id to database?

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

               alert("a");
                }

            }







     here i have checked the checkbox,if it is checked i want to update the checkbox result to databaseso i want to update the checkbox id or value to database..how can i do this??