From e2a3f32f7c268b82f63c079ff2b1c81d1de024d2 Mon Sep 17 00:00:00 2001 From: onefang Date: Wed, 18 Mar 2020 23:51:54 +1000 Subject: Make HTML checkbox validation work. --- src/sledjchisl/sledjchisl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sledjchisl/sledjchisl.c') diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 8bcf076..6a971c8 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -2231,6 +2231,8 @@ static void HTMLformEnd(qgrow_t *reply) static void HTMLcheckBox(qgrow_t *reply, char *name, char *title, boolean checked, boolean required) { + // HTML is an absolute fucking horror. This is so that we got an off sent to us if the checkbox is off, otherwise we get nothing. + HTMLhidden(reply, name, "off"); reply->addstrf(reply, "

"); reply->addstrf(reply, "