RE: [PHP-ES] Sencillo formulario en javascript
| From: | Pedro Gomez | Date: | Wed, 03 Dec 2003 12:50:26 +0000 |
| Subject: | RE: [PHP-ES] Sencillo formulario en javascript | ||
| Groups: | php.general.es | ||
| Request: | Send a blank email to general-es+get-43235@lists.php.net to get a copy of this message | ||
Hola:
No hay forma de que funcione. Lo he cambiado como comentó Jose Luis Pumarega pero sigue sin funcionar.
Por cierto, sigue diciendo que hay un error de ejecución en la linea 4 (la de <script language...") y que esperava un identificador.
Ahora queda esí, pero sigue sin funcionar:
<html>
<head>
<title></title>
<script language="JavaScript">
function Validar(this)
{
if (this.AdmName.href=="")
alert("Debe rellenar todos los campos");
else
alert("Ahora lo has hecho bien");
}
</script>
</head>
<body>
<form name="formulario" method="POST" action="Administra.php">
Nombre
<input type="text" size=16 name="AdmName">
Contraseña
<input type="text" size=16 name="AdmPass" value="">
<input type="button" value="Entrar >>" onclick="Validar(this)">
</form>
</body>
</html>
_________________________________________________________________
Una mejor experiencia en Internet. Prueba gratis dos meses MSN 8. http://join.msn.com/?pgmarket=es-es&XAPID=1577&DI=1055