isn't there at all. So, I guess I'm going to have to look to see whether it's there or not, right? How would I do that?
This is how HTML works. Rather bad design.
In this case, I can take advantage of the bad HTML design with this:
<dtml-if check_box> Checked! </dtml-if>
You want something like: <dtml-if expr="REQUEST.has_key('check_box') and check_box == 'on'"> Checked! </dtml-if>
I'm guessing I can use this in other situations. Thanks so much! Russell
Note that the second part is completely redundant.
<dtml-if expr="REQUEST.has_key('check_box')"> Checked! </dtml-if>
Does the same thing.
In ZPT, this looks like <span tal:condition="python:request.has_key('check_box')">Checked!</span>
Or, more probably <input type="checkbox" name="check_box" tal:attributes="checked request/check_box|nothing" />
Jim Penny
Thanks for the help!
Russell
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )