Good morning,
I have the following:
<div class="form-group col-md-2">
<label for="campo4">Valor da Peça</label>
<input type="text" class="form-control" name="customer['valor_venda']">
</div>
. . Order Value . . Order Value . . Among other inputs, but these I need to add to insert in a field, where I tried
<div class="form-group col-md-2">
<label for="campo6">Valor Total da Venda</label>
<input ('%.2n', $customer['valor_venda']+$customer['valor_venda2']+$customer['valor_venda3']+$customer['valor_venda4']+$customer['valor_venda5'] . "\n") class="form-control" name="customer['total']" >
</div>
I have tried in many ways, including, stupidly, like this:
<div class="form-group col-md-2">
<label for="campo6">Valor Total da Venda</label>
<input type="text" class="form-control" name="customer['total']" value="<?php echo money_format ('%.2n', $customer['valor_venda']+$customer['valor_venda2']+$customer['valor_venda3']+$customer['valor_venda4']+$customer['valor_venda5'] . "\n"); ?>">
</div>
I'm not able to write the 'total' value in BD (MySQL) and I'm not sure what to do.
Some light, please !!