I have a form
form where I would likeneed to define checkboxes
add a checkboxes field. The purpose of this form is to display some values from the database. I would like to display "id"id from my database table as checkboxes' valuescheckbox' value (when "active" = 1
) and "url" as checboxes' labels
from databaseurl as checkbox' labels.
MyThe database table (notifications) looks like this:table's structure is the following.
id | uid | hash | url | active
1 | 1 | myhashstring1 | example_url | 1
2 | 1 | myhashstring3 | example_url4 | 1
3 | 1 | myhashstring2 | example_url2 | 0
How can I achieve this?