Re: [htmltmpl] Select/option How to set "selected"?
Brought to you by:
samtregar
From: Karen J. C. <si...@ph...> - 2004-05-03 23:00:21
|
On Mon, 3 May 2004, Mark Fuller wrote: MF>It seems to me the latter would be more efficient? If I am already testing MF>my criteria for selected, then I don't have to do an "if" again in the HTML. MF>In other words, is it more efficient to resolve the variable contents, or to MF>test variable? The main thing the TMPL_IF offers is the choice for the template writer to change the format. If you hardcode it to "SELECTED" you're requiring a selection box, vs. radio buttons (which use "CHECKED"). (Well, technically if you leave the non-selected ones blank you *could* still use it in a TMPL_IF, but that's a bit risky...) -- Karen J. Cravens si...@ph... |