tadd required attribute to input to signal required fields directly to the client - vote - simple cgi voting system for web and gopher
 (HTM) git clone git://src.adamsgaard.dk/vote
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 5adcb826f99b42970d38689b758d91812bf4483c
 (DIR) parent 3b3d8028f259aa8c06d9fda45c38de975b3df2d2
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sun,  4 Oct 2020 15:50:57 +0200
       
       add required attribute to input to signal required fields directly to the client
       
       Signed-off-by: Anders Damsgaard <anders@adamsgaard.dk>
       
       Diffstat:
         M vote.c                              |       6 +++---
       
       1 file changed, 3 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/vote.c b/vote.c
       t@@ -354,20 +354,20 @@ print_poll_create_form()
                        "<tr>\n"
                        "        <td width=\"100%\" class=\"input\">\n"
                        "                <input type=\"text\" name=\"poll\" "
       -                "placeholder=\"Name\" class=\"name\" />\n"
       +                "placeholder=\"Name\" class=\"name\" required />\n"
                        "        </td>\n"
                        "</tr>\n"
                        "<tr>\n"
                        "        <td width=\"100%\" class=\"input\">\n"
                        "                <textarea rows=\"2\" name=\"question\" "
                        "placeholder=\"Question (first line is header)\" "
       -                "class=\"question\"></textarea>\n"
       +                "class=\"question\" required></textarea>\n"
                        "        </td>\n"
                        "</tr>\n"
                        "<tr>\n"
                        "        <td width=\"100%\" class=\"input\">\n"
                        "       <textarea rows=\"5\" name=\"options\" "
       -                "placeholder=\"Options (one per line)\" class=\"options\"></textarea>\n"
       +                "placeholder=\"Options (one per line)\" class=\"options\" required></textarea>\n"
                        "        </td>\n"
                        "</tr>\n"
                        "<tr>\n"