I use print &build_checkbox_field ($counter, "$rec{'$counter'}"); in a loop to show fields numbered 1 to 99 as configured in the cfg.
When checking the boxes of a specific record in html_record_form, the checked boxes are activated as normally and checked items are saved to the db and html_record shows the checked items. Everything is OK that long.
The problem:
When re-entering html_record_form for a specific record, the previously checked boxes are NOT checked as default, so I have to re-check them when editing the record.
In other words, it seems as build_checkbox_field does not pull out the variables from the db.
Very thankful for your help is yours
CSky
When checking the boxes of a specific record in html_record_form, the checked boxes are activated as normally and checked items are saved to the db and html_record shows the checked items. Everything is OK that long.
The problem:
When re-entering html_record_form for a specific record, the previously checked boxes are NOT checked as default, so I have to re-check them when editing the record.
In other words, it seems as build_checkbox_field does not pull out the variables from the db.
Very thankful for your help is yours
CSky