Hi there.
Has anyone ever come up with a good solution for tricking a cgi form into submitting an unchecked checkbox as a "null" value, instead of the default where it doesn't get submitted at all?
I'm thinking maybe javascript is the way to do this, and I'm contemplating attempting it myself (which could get ugly - my javascripting chops are meager to say the least). But I figured this is probably a common enough problem that someone somewhere must have already solved it, and I see no reason to reinvent the wheel (particularly when I'm liable to come up with a lumpy, square-shaped one that barely rolls... ).
Anyway, love to hear if anyone has any experience with this.
Thanks in advance.
Best regards,
Adam
Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund
Has anyone ever come up with a good solution for tricking a cgi form into submitting an unchecked checkbox as a "null" value, instead of the default where it doesn't get submitted at all?
I'm thinking maybe javascript is the way to do this, and I'm contemplating attempting it myself (which could get ugly - my javascripting chops are meager to say the least). But I figured this is probably a common enough problem that someone somewhere must have already solved it, and I see no reason to reinvent the wheel (particularly when I'm liable to come up with a lumpy, square-shaped one that barely rolls... ).
Anyway, love to hear if anyone has any experience with this.
Thanks in advance.
Best regards,
Adam
Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund