How to create insert data with checkbox php jquery -



How to create insert data with checkbox php jquery -

i have form :

but don't know how create insert info take info checkbox. can tell me how create or if have tutorial please tell me.

use below:

<?php if(isset($_post['submit'])){ foreach($_post['input'] $value){ echo $value; } } ?> <form action="" method="post"> <input type="checkbox" name="input[]" value="1"> <input type="checkbox" name="input[]" value="2"> <input type="checkbox" name="input[]" value="3"> <input type="checkbox" name="input[]" value="4"> <input type="submit" name="submit" value="submit" /> </form>

php jquery

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -