> my @drop = ( { value => '1', label => 'option 1', select => '1'},
>   { value => '2', label => 'option 2' },
>   {value => '3', label => 'option 3'};
> 
> $template->param ( drop => @drop );
> 
> and in the template
> 
> <select name=drop>
> <tmpl_loop drop><option value="<tmpl_var value>" 
> <selected>><tmpl_var label>
> </tmpl_loop></select>
> 
> But it a matter of choice and style how you prefer to do it...

I like this approach but am hesitant to mix the presentation with logic, especially, 
when html page designers in my group are not the ones writing the code.

Regards,
Nishi


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to