I have a form (using bootstrap) with 10 checkbox input filed with different name. In this case I want get value from database and check (if = Y) or uncheck (if = N) the checkbox.
I try with a SQL query to:
SELECT
bk_history
FROM BOOKS_TBL
Get value from database
<input type="checkbox" value="<?=$books['bk_history']; ?>" name="bk_history" style="display: none;" />
When click and check, get update field with Y, when is uncheck update field with N value.
Now, when i check, do not get update
How to resolve this problem?
Thanks
Aucun commentaire:
Enregistrer un commentaire