This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the dumb-mistakes-and-gotchas category.
Last Updated: 2024-11-23
I had a form that submitted data via JavaScri0pt. It "compiled" in the narrow sense that data got sent, but one of the params was not working. When I inspected the HTML for the form, I saw that I had the following:
<input type="checkbox" name=nursing_care_insurance"" value=1>
If you look closely, you'll see I had two quotation marks ending the param name
and zero at the start.
The generalizable lesson is to inspect the details of code (e.g. quotation marks etc.) more carefully as a first port of call if something fails (even if it fails in an undramatic way.)