When I send this html code via ajax it displays correctly but closes the Form tag shortly after opening it, is there another way to do this? or there is some syntax error.
$FormUserCad = '<div class="Ctn_Form_Cad">
<div class="input_form_cad">
<div>
<div><form action="oi.php" method="post"></div>
<div><label>Nome:<label></div>
<div><input name="nome" type="text"></div>
</div>
<div>
<div><label>Idade:<label></div>
<div><input type="text"></div>
</div>
</div>
<div class="input_form_cad">
<div>
<div><label>Rua:<label></div>
<div><input type="text"></div>
</div>...
</form> <--
$retorno = array('codigo' => 0, 'mensagem' => $FormUserCad);
echo json_encode($retorno);
exit();