I have this form within a bootstrap modal;
<form action="form_handler.php" method="get" name="precioUpdate">
<div class="col-xs-6">
<label for="venbras_actual_venta" class="col-xs-12 form-control-label">Precio actual de venta:</label>
<label for="venbras_actual_venta" class="col-xs-12 form-control-label" id="venbras_modal_venta"></label>
</div>
<div class="form-group col-xs-6">
<label for="venbras_modal_update_venta" class="form-control-label">Nuevo precio de venta:</label>
<input type="text" class="form-control" name="update_venta" value="000" id="update_venta" />
</div>
<div class="col-xs-6">
<label for="venbras_actual_compra" class="col-xs-12 form-control-label">Precio actual de compra:</label>
<label for="venbras_actual_compra" class="col-xs-12 form-control-label" id="venbras_modal_compra"></label>
</div>
<div class="form-group col-xs-6">
<label for="recipient-name" class="form-control-label">Nuevo precio de compra:</label>
<input type="text" class="form-control" id="recipient-name">
</div>
</form>
And this is simply trying to show the value of one of the fields but the variable Undefined error. And this is the php code to display the values of the form
<?php
$precioNuevo = $_GET['update_venta'];
echo $precioNuevo;
?>