Looks like you're hidding the problem under the carpet.
Shouldn't it be something like, in pseudo-code :
```php
print '<input id="transparency" type="checkbox" name="transparency"'
if ($actioncomm->transparency) {
 print ' checked';
}
print '>';
```
?