How to get $_POST from multiple checkboxes in PHP?

Posted by Rohit Kumar | Updated on

Set the name in the form to check_list[] and you will be able to access all the checkboxes as an array($_POST[‘check_list’][]).

Here’s a little sample as requested:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers