1
Although you have set the field default value to "N" in Mysql, when using radio button in the form, if it is not selected, the record comes as null. How to make the entered record, in which the radio button is not checked, come as "N"?
The table configuration is like this:
And the record, after inserted with the use of radio button is like this:
I am using the following encoding:
<label for="b_ant">Base Anterior</label><input name="b_ant" type="radio" value="S" />
<label for="b_grade">Base na Grade</label><input name="b_grade" type="radio" value="S" />
On Insert, put it like this:
IFNULL(b_ant,DEFAULT(b_ant)
– Francisco
Thanks for the reply Francisco. I must put this via PHP or direct in the form?
– Webster Moitinho