<input type=”text” name=”var1″ value=”<?echo $_POST["var1"];?>”…
al parecer esto funciona, el problema esque tengo todo en heredoc, algo asi:
Código PHP:
echo <<< HTML
<form method="post" action="$PHP_SELF?accion=hacernuevo">
<table width="500" border="1" cellspacing="0" cellpadding="4" align="center">
<tr>
<td colspan="2" height="30" bgcolor="#115A7A">
<div align="center"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#FFFFFF">.:
Registro :.</font></b><br>
<a href="$pag">Regresar</a></div>
</td>
</tr>
<tr>
<td width="250">
<div>Paterno: </div>
</td>
<td width="250">
<input type="text" name="paterno" id="paterno" class="imputbox" maxlength="20" onChange="javascript:this.value=this.value.toUpperCase()" >
</td></tr>
<tr>
<td width="250">
<div>Materno:</div>
</td>
<td width="250>
<input type="text" name="materno" id="materno" class="imputbox" maxlength="20" onChange="javascript:this.value=this.value.toUpperCase()">
</td> </tr>
<tr>
<td width="250">
<div>Nombre: </div>
</td>
<td width="300">
<input type="text" name="nombre" id="nombre" class="imputbox" maxlength="20" onChange="javascript:this.value=this.value.toUpperCase()">
</td>
</tr>
<tr>
<td colspan="2" height="40">
<div align="center">
<input type="submit" name="Submit" val ue=" Registrar " class="botones" ><br>
<a href="menu.php">menu </a>
</div>
</td>
</tr>
</table>
</form>
HTML;