This will work.
<INPUT TYPE="checkbox" NAME="some_field_name" VALUE="true" [$ if defined
$fdat{'some_field_name'} $] CHECKED [$ endif $]>
Also, a really good online HTML reference can be found at:
http://www.zdnet.com/devhead/resources/tag_library/
Robert wrote:
>
> "Erich L. Markert" wrote:
> >
> > First, name contains the field name of the form element, what you need
> > to set is the value attribute.
>
> I'm afraid I don't undestand what you're saying. [- $fdat{xxx} = ... -]
> used to init form element named xxx last time I looked in the docs.
>
> > Second, the value should be "CHECKED" not on.
>
> Yes I tried [- $fdat{xxx} = "checked" -], doesn't work either.
>
> - Robert
>
> > Robert wrote:
> > >
> > > Hi,
> > >
> > > I'm not able to init checkbox
> > >
> > > <form>
> > > [- $fdat{xxx} = "on" -]
> > > <input name=xxx type=checkbox>
> > > </form>
> > >
> > > No matter what I put in $fdat{xxx} (on,true,checked,1 etc), checkbox is
> > > never checked. All other elements like text's, select's, radio's work as
> > > expected. What's going on? (I'm running with option=8208, embperl is
> > > 1.2.1)
> > >
> > > - Robert
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > --
> > __________________________________________________________
> > Mr. Erich L. Markert [EMAIL PROTECTED]
> > Computer Learning Center TEL (914)422-4328
> > Pace University
> > 1 Martine Ave
> > White Plains, New York 10606-1932
> >
> > Those who do not understand Unix are condemned to reinvent it, poorly.
> > -- Henry Spencer
--
__________________________________________________________
Mr. Erich L. Markert [EMAIL PROTECTED]
Computer Learning Center TEL (914)422-4328
Pace University
1 Martine Ave
White Plains, New York 10606-1932
Those who do not understand Unix are condemned to reinvent it, poorly.
-- Henry Spencer
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]