Wednesday, March 8, 2017

Pass two variables through checkbox in php

Through checkbox I want to pass & values. how can I do that. I can only pass one value. I am trying but its not working

while($row_tbl = mysqli_fetch_array($query))
      {
        <tr class="success" style="font-size:12px;">

         <td > <input type="checkbox" name="check[]" class="chk_val" value=" <?php echo $row_tbl['Course_ID'] ?> " id="in" onclick="test()" /></td>

            <td > <?php echo $row_tbl['Course_ID'] ?> </td>
            <td> <?php echo $row_tbl['Course_Title'] ?> </td>
            <td> <?php echo $row_tbl['Section'] ?> </td>
            <td> <?php echo $row_tbl['Time'] ?> </td>
            <td> <?php echo $row_tbl['Day'] ?> </td>
            <td> <?php echo $row_tbl['Dept'] ?> </td>
            <td> <?php echo $row_tbl['Capacity'] ?>&nbsp/&nbsp 0 </td>


                    <?php

                  }



via Mithun

Advertisement