>
> > > <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)
>

Just missied the first part:

> <INPUT TYPE="TEXT" NAME="first_name" VALUE="<#FIRST_NAME HTMLESC>">

Embperl take $fdat{first_name} (if present) and generate the value atrribute
for you

<INPUT TYPE="TEXT" NAME="first_name">

> <A HREF="/somehandler?email=<#EMAIL URLESC>">

<A HREF="/somehandler?email=[+ $email +]">

Embperl knows the context and automaticly chooses the right escaping.
Normaly you don't have to care about it (also you can, if you don't like
Embperl selection)

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