Hello everybody! I find the solution for my problem. I use MySql for databse and for the id i use integer. And I think this is never same with a string. When I use smallint, everything is working. Tamas Amon wrote:
Hello, I have a little problem, but I don't find the solution for it. Here is the code: ----- <form name='ware'> <select name="warez" onChange="document.ware.submit()"> <dtml-if warez> <dtml-in wares> <dtml-if expr="id == warez"> <OPTION VALUE=<dtml-var id> DEFAULT><dtml-var sname> <dtml-else> <OPTION VALUE=<dtml-var id>><dtml-var sname> </dtml-if> </dtml-in> <dtml-else> <dtml-in wares> <OPTION VALUE=<dtml-var id>><dtml-var sname> </dtml-in> </dtml-if> </select> </form> ----- But the <dtml-if expr="id == warez"> is never true. Why it is possible?
Thanks for your help. -- Amon Tamas sajt@amon.hu
_______________________________________________ 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 )
-- Amon Tamas sajt@amon.hu