on or about, Wednesday, May 08, 2002, we have reason to believe that Richard McKinley wrote something along the lines of : RM> I want to be able to add the SELECTED HTML attribute to a specific option RM> which is determined only at runtime. Basically if the current value of RM> research_purpose field equals the value of the purpose variable I want to RM> insert the select attribute at this point. [snip] RM> However, I get a syntax error. How do you usually test the condition when 2 RM> variable are equal? <dtml-if expr="RESEARCH_PURPOSE == PURPOSE"> selected=selected </dtml-if> :-) stuff inside quotes is the same as inside expr="" , meaning a python-expression.. You cannot use DTML in python expressions. -- Geir Bækholt web-developer geirh@funcom.com funcom oslo | webdev-team