[html-formfu] How to make checkbox (checked/unchecked) database
driven
Carl Franks
fireartist at gmail.com
Thu Jul 5 19:05:37 GMT 2007
> { type => $type, name=>'role', value=> $_->id, label => $_->name,
This looks correct - setting 'value' with the id.
> id=>'role_'.$_->id, /*'checked'(maybe a condition here)*/ }
this isn't valid perl - so what are you really using?
If you're not setting 'default', then it shouldn't be getting checked at all.
Carl
More information about the HTML-FormFu
mailing list