Ver Mensaje Individual
  #4 (permalink)  
Antiguo 16/04/2011, 16:56
Avatar de alor86
alor86
 
Fecha de Ingreso: abril-2009
Mensajes: 110
Antigüedad: 15 años
Puntos: 5
Respuesta: Necesito mejorar Formulario para Redireccionar a usuarios a su área privad

Código Javascript:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3.  
  4. <head>
  5.     <script type="text/javascript">
  6.         function Entrar(text) {
  7.             if(text=="")
  8.                 alert("llene el campo");
  9.             else    
  10.                 window.location=text+".php"
  11.             return false;
  12.         }
  13.     </script>
  14. </head>
  15.  
  16. <body>
  17.     <form>
  18.         <p>
  19.             <input type="text" name="usuario" size="25" />
  20.             <input type="submit" value="Acceder al Área de Usuario"   onclick=" return Entrar(this.form.usuario.value)" name="button" />
  21.         </p>
  22.     </form>
  23.  
  24. </body>
  25. </html>
prueba asi
__________________
Cada vez que toco mi código, doy a luz a diez nuevos bugs