> [EMAIL PROTECTED] On Behalf Of Jonathan Bowlas
> How can I do this with dtml?
> 
> <select name="MODLEVEL" size="1">
>       <dtml-if expr="<dtml-var name="MODLEVEL"> == 1"> #I need an
> alternative to this.
>               <option value="1" selected="selected">1</option>
>               <option value="2"><2</option>
>               Etc, etc.




<dtml-if MODLEVEL>
        <select name="MODLEVEL:int" size="1">
                <option value="1" <dtml-if expr="MODLEVEL ==
1">SELECTED</dtml-if> >1</option>
                <option value="2" <dtml-if expr="MODLEVEL ==
2">SELECTED</dtml-if> >2</option>
                Etc, etc.
</dtml-if>

Regards, JL.

_______________________________________________
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