For example, i have checkboxes:
<input type='checkbox' name='fruit' value='apple'> Apple
<input type='checkbox' name='fruit' value='orange'> Orange
These checkbox values are in separate MySQL table.
How to create new checkbox when I add new value to MySQL table?
f.e. Updating table with value ‘banana’ creates checkbox:
<input type='checkbox' name='fruit' value='banana'> Banana
Thank you.
Yes it’s possible you need to query in to database and display checkboxes using PHP on form according to query results.