Post HTML checkboxes?

Skip Montanaro montanaro at tttech.com
Mon Nov 12 07:48:39 EST 2001


    Gustaf> For some reason, my the values of my (X)HTML checkboxes won't
    Gustaf> show up in the CGI dictionary of name + values. I have a form
    Gustaf> with these two checkboxes:

    Gustaf> <input id="drink1" type="checkbox" value="Zingo"/>
    Gustaf> <input id="drink2" type="checkbox" value="Fanta" checked="checked"/>

Gustaf,

You need a "name" attribute in there somewhere.  I don't recognize "id".  I
suspect it should be "name" instead.

-- 
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list