Thanks everybody who answered. Brief resume: I used to write
<input name=xxx type=text value=[+ $fdat{xxx} +]>
while now I prefer cleaner way using Embperl's feature of automatic form
fields initialization
[- $fdat{xxx} = "stuf" -]
... a lot of HTML ...
<input name=xxx type=text>
This works fine (at least) for text fields and selects, but it fails
badly for checkboxes, where one has to write something like
[- $fdat{xxx} = "some value" -]
... a lot of HTML
<input name=xxx type=checkbox value="some value">
and Embperl adds boolean attribute 'checked' when needed.
I think it would be more intuitive if Embperl allowed for some default
value, so one could write
[- $fdat{xxx} = "some value" -]
<input name=xxx type=checkbox>
and Embperl would understand that "some value" is perlish true/false and
added 'checked' accordingly.
At least it confused me enough so I spent most of this afternoon fooling
around with all options I could think of and even reinstaling Embperl
;-(.
- Robert
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]