I have a css table of multiple products with the same Quantity input name and Product ID input name. Every ID and Quantity are going to be different values
They look like this
<input type="number" name="quantity" value="0">
<input type="hidden" name="prod_id" value="<?php echo $product_id; ?>">
My question is how do I push both values in to an array/string that looks like this
$product_ids = '150:2,152:4';
Product id first then Quantity number after the :