check box with value in php 1

check box with value in php

Select languages
PHP
JavaScript
jQuery
Angular JS
'; } } } ?>

Here is what the above code is Doing:
1. First, we are checking if the form has been submitted using $_POST[‘submit’].
2. Then, we are checking if the checkbox has been checked using !empty($_POST[‘lang’]).
3. If the checkbox has been checked, we are looping through the checkbox values using foreach loop.
4. Finally, we are printing the checkbox values.

Similar Posts