I have a set of checkboxes like these but was wondering how to approach checking them be default based on the values in the database.
<input type="checkbox" name = "others_post" id = "others_post" value="1"> Other's Posts <br/>
<input type="checkbox" name = "clients_post" id = "clients_post" value="1"> Cilent's Post <br/>
<input type="checkbox" name = "assigned_tasks" id = "assigned_tasks" value="1"> Task Assigned
This Perl script holds all the database values:
my $prefs = USystems::UserPrefs->new($user->userid);
I found something similar on a PHP thread which is exactly what I want but with Perl PHP checkbox set to check based on database value
I'm not very fimiliar with Perl so I dont know if there was syntax like the PHP example that you can insert into the checkboxes?
checkedinto<input>?