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
Post a Comment