I have form which lists all the in stock products from database with price.User will add quantity , it calculated the amounts and submits the form. in the list there are 5 products. Each time user can fill any one or all the 5. While submiting, i want to get only quantity filled values to database. I am not getting how to do it
Here is my code
<tr>
<td><?php echo $Myrow['product']; ?></td>
<input type="hidden" name="product_id[]" value="<?php echo Myrow['id']; ?>" />
<td><input type="text" name="rte[]" value="<?php echo $Myrow['rate']; ?>" readonly="readonly" class="price form-control" /></td>
<td><input type="text" name="Qty[]" class="Qty form-control" /></td>
<td><input type="text" id="amount" name="amount[]" class="amount form-control" /></td>
</tr>
<?php } ?>
</tbody>
How can is submit only non-emptied values. Please help