Post HTML checkboxes?
paul at boddie.net
Mon Nov 12 16:24:27 CET 2001
"Gustaf Liljegren" <gustafl at algonet.se> wrote in message news:<9soc2i$ch$1 at green.tninet.se>...
> For some reason, my the values of my (X)HTML checkboxes won't show up in the
> CGI dictionary of name + values. I have a form with these two checkboxes:
> <input id="drink1" type="checkbox" value="Zingo"/>
> <input id="drink2" type="checkbox" value="Fanta" checked="checked"/>
I think you ought to try using the "name" attribute rather than the
"id" attribute. That will result in the field values being passed to
your CGI program under the names you attempted to specify above.
More information about the Python-list