You can use Ajax with jQuery:
var field = $("input[name=adicional]");//Pega o seu campo
$.ajax("pagina.php", {
"type": "POST",
"data": {
"id": field.attr("id"), //Envia o id
"adicional": field.val() //Envia o valor
}
}).done(function(data) {
alert(data);
}).fail(function(a, b) {
alert(b);
});
PHP should be something like:
<?php
$id = $_POST['id'];
$valor = $_POST['adicional'];
However if you have little knowledge of ajax and have an urgency to deliver the project, then I recommend doing it by pure html like this:
<input type="hidde" name="adiciona-id" value="Leite Ninho">
<input type="checkbox" name="adicional" value="2.00">
PHP should be something like:
<?php
$id = $_POST['adiciona-id'];
$valor = $_POST['adicional'];
I do not know how your code is html or php, because this you did not put in the question, I answered what is inside what was asked, but I believe that regardless of the logic code here applies to "almost anywhere ".