4
I have a form with several fields containing values in currency as I can add all these values in the post output
Example form
<form id="form2" name="form2" action="includes/acao.php?form=faturamento"
method="post" >
<input type='hidden' name='valor[{$id_finan}]' value='{960.00}' />
<input type='hidden' name='valor[{$id_finan}]' value='{960.00}' />
<input type='hidden' name='valor[{$id_finan}]' value='{960.00}' />
</form
acao.php
foreach($_POST["checkbox"] as $key=>$value){
echo $valor = mysql_real_escape_string($_POST['valor'][$key]);
// Retorno 960.00960.00960.00
}
How to bring this return already added
You want to add up before you get to the server, is that it? At the event
submit
form you can do this.– Giancarlo Abel Giulian
I prefer the sum to be made in the action.php
– Fabio Henrique