[Zope] reading values from radio buttons (python script)

Lennart Regebro regebro at gmail.com
Wed Sep 21 06:46:47 EDT 2005


On 9/21/05, Georgakopoulos Nicolas <nicolasg at vtrip.net> wrote:
> I have made a form with various quetions . The answers are given by
> radio buttons and check boxes.
> When the user submit the form it is send to my e-mail by zope mailhost.
> How can I get the radio and checkbox values ?
>  I only know to get values from text boxes...

Because the people who designed the HTML form functionality are brain
dead morons, "Not checked" and "not existing" is the same thing.
Therefore you need to do this:

request.form.get('fieldname', False)

-- 
Lennart Regebro, Nuxeo     http://www.nuxeo.com/
CPS Content Management     http://www.cps-project.org/


More information about the Zope mailing list