ayuda con formulario PHP
hola quisiera saber que error tiene este codigo ya que no me imprime la palabra que escribo en el campo de texto:
<html>
<form name="Formulario" method="post" action="prueba3.php" OnSubmit="return validar(this)">
<table width="98%" border="0" cellspacing="0" cellpadding="2">
<tr>
<div align="center"><b>Nombre</b>
<input type="text" name="nomyape">
</div>
</tr>
<tr align="center">
<td colspan="2">
<input type="submit" name="submit" value="procesar">
</td>
</tr>
</table>
</form>
<?
echo "A ingresado la siguiente palabra : ";
if($_post['submit'])
{
echo $_post['nomyape'];
}
?>
</html>
<html>
<form name="Formulario" method="post" action="prueba3.php" OnSubmit="return validar(this)">
<table width="98%" border="0" cellspacing="0" cellpadding="2">
<tr>
<div align="center"><b>Nombre</b>
<input type="text" name="nomyape">
</div>
</tr>
<tr align="center">
<td colspan="2">
<input type="submit" name="submit" value="procesar">
</td>
</tr>
</table>
</form>
<?
echo "A ingresado la siguiente palabra : ";
if($_post['submit'])
{
echo $_post['nomyape'];
}
?>
</html>
