ya hice una prueba y me funciono, pero me muestra este error.
Notice: Undefined variable: fecha in D:\wamp\www\PROYECTO\prueba.php on line 13
y el codigo es este:
Código PHP:
Ver original<html>
<head>
<title>Untitled</title>
</head>
<body>
<form name="formulario" action="" method="post">
diga el numero
<input type="text" name="fecha" />
<input type="submit" value="verifica" /></form>
<?
{
echo "Yes es un numero, sumerced";
}
else {
echo "No";
}
?>
</body>
</html>
lo que me imagino es que $fecha no tiene variable asignada.
como hago para asignar a $fecha la variable name=fecha.? para que asi no me salga el error.