I need to show two information when the user enters the commission amount, in case the information I should show would be IR
and Valor líquido
.
1.200,00
, the IR
label would appear 18,00%
(1,200 x 1,5%) and label Valor líquido
net total (1,200 - 18) that would give% with%.
I believe that I would have to put some function in javascript, but I am lay with this language, or if there is any other way, all help will be welcome.
Obs. the intention is only to show the two values IR and Net Value without needing to save anything, because what I need to save even would be the value of the commission.
My code:
<form method="post"action="processa.php">
<label>Valor comissão:</label>
<input type="text" name="valor_comissao">
<label>IR:</label>
<input type="text">
<label>Valor Líquido:</label>
<input type="text">
<button type="submit">Enviar</button>
</form>