I'm trying to just select a radio button to be saved in a variable in php, but for now I just managed to do it in javascript and it gives me the error [object NodeList].
function updateTotal() {
var radios = document.getElementsByName('shipping');
document.getElementById('prueba').innerHTML = radios;
}
<strong>estado</strong> = frio
<label>
<input name="shipping" type="radio" id="RadioGroup1_0" value="calor" checked="checked" onclick="updateTotal()" />
</label>calor
<input type="radio" name="shipping" value="frio" id="RadioGroup1_0" onclick="updateTotal();" />
<br />
<span id="prueba">aaaa</span>