On Thu, 27 Jul 2000, Jacob Davies wrote:

> <SELECT NAME="country">
> <OPTION VALUE="uk" <#COUNTRY SELECTEDIF="uk"> > The Mother Country
> <OPTION VALUE="us" <#COUNTRY SELECTEDIF="us"> > Some Other Country
> </SELECT>

In Mason that looks like:

<option value="uk" <% $country eq 'uk' ? 'selected' : '' %>>

Or

<option value="uk" <% 'selected' if $country eq 'uk' %>>

Seems pretty close to what you want, I think.


-dave

/*==================
www.urth.org
We await the New Sun
==================*/

Reply via email to