Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/09/2005, 17:35
Avatar de flaviovich
flaviovich
 
Fecha de Ingreso: agosto-2005
Ubicación: Lima, Peru
Mensajes: 2.951
Antigüedad: 19 años, 5 meses
Puntos: 39
Prueba con esto:
Código HTML:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="javascript">
var fecha_hoy = "<? print date("Y-n-j"); ?>";
</script>
</head>

<body>
<form action="" method="post" onSubmit="if (mifecha.value <= fecha_hoy) return true; else return false;">
  <p>
    <input type="text" name="mifecha">
</p>
  <p>
    <input type="submit" value="Enviar">
    </p>
</form>
</body>
</html> 
Quizas pueda falla, por el tipo de datos... deberia ser de tipo date.