How to store check box value in database within a yes/no field?

When a user checks a box and creates a thing how do I turn a yes/no field to hold a yes state?