19 May
2003
19 May
'03
6:08 p.m.
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>