<tr>
<td>
<label class="title">Chocolate: </label><br>
<label><?php echo $ver[4]; ?></label>
</td>
<td>
<input type="hidden" name="ChocolateIn" value="<?php echo $ver[4]; ?>">
<input type="number" class="form-control form-control-lg" name="Chocolate" placeholder="Saldo" required >
</td>
<input type="hidden" id="preciochocolate" value="500"/>
<td>
<input type="text" class="form-control form-control-sm" id="RChocolate" name="RChocolate" value="0" readonly>
</td>
Lemonade:
<label><?php echo $ver[5]; ?></label>
</td>
<td>
<input type="hidden" name="LimonadaIn" value="<?php echo $ver[5]; ?>">
<input type="number" class="form-control form-control-lg" name="Limonada" placeholder="Saldo" required>
</td>
<input type="hidden" id="preciolimonada" value="350"/>
<td>
<input type="text" class="form-control form-control-sm" id="RLimonada" name="RLimonada" value="0" readonly >
</td>
** Nesesito that subtracts the value of the "ChocolateIn" input that results from a sql query. subtract it with the value of the "Chocolate" input that the user enters manually the result of that operation multiplies it with the value of the input "preciochocolate" the result of that is stored in the "RChocolate" input likewise with the other row of "Lemonade"
at the end show me the sum of the input "RChocolate and RLimonada" without using buttons thanks I'm new but I learn fast, use php html, how should I do these operations thanks **