vendredi 22 janvier 2016

unable to get the array values total when checkbox is clicked in php

In php i need to store the meters total in database when the specific checkbox is clicked , but the meter is also an array , for checkbox i passed i value , the i is starting from 0 , and increases based on row fetched from table,

meter has 4 values , name=meter[] checkbox has 4 values , name=ids[]

    <?php foreach($data as $item)?>
 <tr>
 <td align='center'>{{$i}}</td>     
<td><input type='text' name='net[]'   value="{{$item['net']}}"   ></td>
<td><input type="checkbox"  name="ids[]"value="{{$i}}" /></td>
</tr>
<?php $i++; ?>




Aucun commentaire:

Enregistrer un commentaire