I would like to make a mini ordering system through the checkbox and input, this would be the idea in the code below:
<form method="POST">
<input type="checkbox" name="produto[]" value="Feijao">Feijao - Quantidade
<input type="number" name="qtd[]" min="0" max="99">
<input type="checkbox" name="produto[]" value="Arroz">Arroz - Quantidade
<input type="number" name="qtd[]" min="0" max="99">
<input type="submit" name="">
</form>
How would you do to get these items through php? the idea would be: Quantity and the product marked next - Ex:
2 - Feijão
3 - Arroz