On 19.Mai 2003 - 13:08:45, Jordan Carswell wrote:
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>>
I would change that to: <dtml-if "absolute_url == usertheme"> <option value="&dtml-absolute_url;" selected> <dtml-else <option value="&dtml-absolute_url;"> </dtml-if Andreas -- Your mode of life will be changed for the better because of good news soon.