PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
If the information is going to a database, then simply set the default value in db to "no". But, yes, if the checkbox is not selected, that information associated with the checkbox is not sent.
First set the default value "Yes" (checked) onLoad() even of the page that is in <body> and then OnChange() event was attached to the checkbox which would assign corresponding values to a hidden element. This way, whether checkbox is checked or not, I still have a valud value!