0
input
I didn't quite get it why you used name="gender" & value="1" in the following lines <input type="checkbox" name="gender" value="1" /> Male <br /> <input type="checkbox" name="gender" value="2" /> Female <br />
1 Answer
0
for values
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox
Names are used to group similar things just ,you can have different names but names and values are used at server side ,so you maybe see how a certain backened language works with the same names and values ,
Some discussion on same name attribute
https://www.freecodecamp.org/forum/t/should-checkbox-inputs-have-the-same-name-attribute/271026