I'm perplexed.  I can't get quoted "checked" or "selected" attributes to 
appear in dynamically generated form elements.

Here's a snippet:

<select name="template_id">
                                                        <@ROWS ARRAY=templates>
                                                                <option 
value="@@request$templates[<@CURROW>,1]" <@IFEQUAL 
VALUE1='@@request$template_id' VALUE2='@@request$templates[<@CURROW>,1]'> 
"selected" <@ELSE></@IF>>
                                                                        
@@request$templates[<@CURROW>,2]
                                                                </option>
                                                                </@ROWS>
</select>


Here's the output:

<select name="template_id">
                                                                                       
                                 <option value="4"  selected >

                                                                        template1.html
                                                                </option>
                                                                                       
                                         <option value="5" >
                                                                        template2.html
                                                                </option>
                                                                
</select>


Note that "selected" is NOT quoted.  Anyone have better eyes than me?

Bill Conlon

To the Point
345 California Avenue Suite 2
Palo Alto, CA 94306

office: 650.327.2175
fax:    650.329.8335
mobile: 650.906.9929
e-mail: mailto:[EMAIL PROTECTED]
web:    http://www.tothept.com


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf

Reply via email to