Is there a common way or best practice, for creating a HTML "checkbox" form field and marking it checked?
This is what I started using:
print qq{ <input type="checkbox" name="fieldName" value="1" @{ ($fieldValues{fieldName}) ? 'checked="checked"' : '' } /> };
submitted by /u/ComparisonExtension3
[link] [comments]