Jump to content
Larry Ullman's Book Forums

How Do I Insert Values Of Unchecked Checkboxes To Db

Recommended Posts

If it was a option, like receive emails?, that always gets represented in the database--0 for no, 1 for yes, that would make sense. You can just add PHP logic that sets a default value of, say, 0 unless the box is checked, in which case you use 1.

Link to comment
Share on other sites


  • Create New...