Quero fazer aparecer dentro da caixa, o html que está dentro do php, mas não consigo.
Alguem sabe como resolver?
[codebox]<form name="form1" action="b3teste.php" method="post">
<table width="200" height="76" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Numero de campos: </td>
<td>
<input type="text" name="nome" value="<?php isset($_POST['nome'])? print $_POST['nome']: print ""; ?>" size="10"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="enviar" value="submit"></td>
</tr>
</table></form>
<?php
$tb = '<form name="form2" action="b3teste.php" method="post"><table width="200" height="76" border="0" cellpadding="0" cellspacing="0">';
$tb .= '<tr><td>Numero de campos: </td>';
$tb .= '<td><input type="text" name="nome" value="';
isset($_POST["nome"])? print $_POST["nome"]: print "";
$tb .= '" size="10"></td>';
$tb .= '</tr> <tr><td></td> <td><input type="submit" name="enviar" value="submit"></td> </tr>';
$tb .= '</table></form>';
echo $tb;
?>[/codebox]
Edição feita por: savior, 27/12/2007, 14:32.