# PHP Checkboxes insert into database

**URL:** <https://forum.kirupa.com/t/php-checkboxes-insert-into-database/198464>\
**Category:** programming\
**Created:** [August 25, 2006, 8:55am UTC](https://forum.kirupa.com/t/php-checkboxes-insert-into-database/198464 "2006-08-25T08:55:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maweber98](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@maweber98](https://forum.kirupa.com/u/maweber98)\
**Post date:** [August 25, 2006, 8:55am UTC](https://forum.kirupa.com/t/php-checkboxes-insert-into-database/198464/1 "2006-08-25T08:55:37Z")

</div>

I have a form that has 36 checkboxes on it and I need to get the boxes that are checked and insert them into a mysql database. I also need to be able to restrict the user to selecting no more than 2 choices. Does anyone have any idea how to do this? Thanks so much! Any help would be greatly appreciated!
