How to put the value of a variable (already computed in PHP) within an input ?
<form method="post" action="calculos.php">
<div id="circulantes">
<div class="ativocirculante" id="ativocirculante">
<h2>ATIVO CIRCULANTE<input type="text" placeholder="R$ 0,00" id="ac" readonly/></h2>
<h4>Ativo Errático (Financeiro) <input type="text" placeholder="R$ 0,00 aplicações" id="ae"/></h4>
<h4>Disponíveis (Caixa e Bancos)<input type="text" placeholder="R$ 0,00" id="disp"/></h4>
<h3>ACO<input type="text" placeholder="R$ 0,00" id="aco" readonly/></h3>
<h4>Contas a receber<input type="text" placeholder="R$ 0,00" id="cr" name="ncr" value="<?php echo $crTot;?>" readonly/></h4>
<h4 id="cr1">Até 30 dias<input type="text" placeholder="R$ 0,00" id="cr11" name="ncr11"/></h4>
<h4 id="cr2">31 a 60 dias<input type="text" placeholder="R$ 0,00" id="cr22" name="ncr22"/></h4>
<h4 id="cr3">61 a 90 dias<input type="text" placeholder="R$ 0,00" id="cr33" name="ncr33"/></h4>
<h4 id="cr4">Acima de 90 dias<input type="text" placeholder="R$ 0,00" id="cr44" name="ncr44"/></h4>
<h4>Estoque<input type="text" placeholder="R$ 0,00" id="est"/></h4>
<h4>Adiantamento a Fornecedores<input type="text" placeholder="R$ 0,00" id="af"/></h4>
<h4>Despesas antecipadas<input type="text" placeholder="R$ 0,00" id="da"/></h4>
<input type="submit" value="calcular">
</div>
<?php
$crTot = "";
if(isset($_POST)){
$cr1 = $_POST['ncr11'];
$cr2 = $_POST['ncr22'];
$cr3 = $_POST['ncr33'];
$cr4 = $_POST['ncr44'];
$crTot = $cr1+$cr2+$cr3+$cr4;
echo $crTot;
}