jeudi 9 mai 2019

how to select multiple rows in table via checkbox and pass these values to another table

I want to select multiple rows in a table via checkboxes and store these values in another table.I have almost done.but problem is that when i select multiple rows and get these values via array.It only fetch single value.I want all selected values.please help me in this regard.my code is given below.

             <form class="form-horizontal"  method="post" action="add_exam_quiz.php" role="form" id="form1" >


                 <tr>  
                           <td><input type="checkbox" name="quiz_question[<?php echo  $question_no; ?>]" value="<?php echo  $question_no; ?>"> <?php echo  $question_no; ?> </td> 


                          </form> 


                 </tr>  

i expect an array with all checked values.but i got single value.




Aucun commentaire:

Enregistrer un commentaire