> > <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' %>>
>

In Embperl you simply write

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

Embperl select the option which value is found in $fdat{country} . (The hash
%fdat contains the form data posted to this page, so if you post a form to
itself, it will automaticly display the values the user just entered)

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925151
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------

Reply via email to