I saw that the value of the Yes / No radio button of the form is saved / saved in several ways. I wonder which way is better and why? This is for a PHP / MySQL application with a typical yes / no question as part of the form.
1.) Save it as 1, 0 or null. 1 - Yes, 0 - No, but null - did not answer.
2.) Save it as Yes, No, No. Assume that a language conversion can be performed.
3.) Use 1, 2, and null to better distinguish values.
Thanks Jeff
Edit: I should also mention that most of the problems were due to jQuery / JavaScript, as well as $ () comparisons and bindings.
source
share