David Ayres wrote at 2005-6-15 11:27 -0400:
>Whenever a form is posted, the text fields always show up in the
>request.form, however any other type of form element that has not been given
>a value does not show up. None of the fields have the ignore_empty
>attribute. Besides using the missing= attribute, what other options are
>there?

This is as specified by HTML:

   Unchecked check boxes and not selected options are not 
   sent by the browser.

Zope allows you to use suffixes to tell its ZPublisher component
to hande form variables in a special way.

One of these suffixes is ":default". It is used in
an '<input type=hidden name="variable:default" value="some_value">'
to provide a default value for "variable".

You find a discription of more of these magic suffixes in

  <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>


-- 
Dieter
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to