Hello everyone, please, if someone can help me, I need to pass a javascript variable to php .. I have this function
<script type="text/javascript">
function operacion(field) {
var form = field.parentNode;
var numero1 = form.cantidad.value;
var numero2 = form.precio.value;
form.total.value = ( numero1 * numero2 );
}
</script>
and prints the result in the total input
<td><label>Total</label></td>
<td><input align="right" type="text" name="total"></td>
What I want is for that total javascript variable to print something like this
<?php
echo $total = aqui quiero que aparezca la variable total del javascript sin el input;
?>
If someone can help me, I thank you very much in advance ...