[Zope] dtml, cookies, forms, problems

Jordan Carswell jordan.carswell@hccs.edu
Mon, 19 May 2003 13:08:45 -0500


Trying to figure out a way to compare a user's cookie (zwiki_theme) 
with the options in a form list and if the cookie value and option 
value match, that option will be 'selected'. Here's the code I've 
played around with in which nothing is returned. Any help would be 
appreciated.


<h2>Available Themes</h2>
   <dtml-let usertheme="REQUEST.get('zwiki_theme')">
<select name="zwiki_theme">
   <dtml-in expr="themes.objectValues('File')" sort=title>
<option value="&dtml-absolute_url;"
   <dtml-if "absolute_url == usertheme">selected</dtml-if>>
<dtml-var title>
</option>
   </dtml-in>
</select>
   </dtml-let>