Ver Mensaje Individual
  #3 (permalink)  
Antiguo 01/06/2009, 07:17
Avatar de novamix
novamix
 
Fecha de Ingreso: enero-2007
Ubicación: Getafe, Spain
Mensajes: 50
Antigüedad: 17 años, 3 meses
Puntos: 1
Respuesta: Auto enviar formularios

no lo consigo :S este es lo que estoy haciendo hay algo mal??

Código HTML:
<html>
<head>
<script type="text/javascript">
var segun=5;
function crono() {
  segun--;
  document.getElementById('seg').innerHTML = segun;
if(segun==0){
   forms[0].submit();
}
}
</script>

</head>
<body onload="setInterval('crono()',1000)">
<p>Redirecci&oacute;n en <span id="seg">20</span> segundos</p>
<p><form action="Login.php" method="post" name="loginform" id="loginform">
      <dl>
        <dt><strong>E-mail:<br />
        </strong>
          <input name="email" type="text" value="" size="40" />
        </dt>
        <dt><span class="c"><strong>C</strong></span><strong>ontrase&ntilde;a:<br />
        </strong>
          <input name="password" type="password" value="" size="40" />
          <br />
          </dt>
        <table width="100%" border="0" align="center" class="titutlo">
          <tr>
            <td><input type="submit" name="submit" value="       Entrar       " /></td>
          </tr>
        </table>
        <dt class="titutlo"><a href="Login/forgotpassword" target="_blank">
          <label>
            <input type="hidden" name="redir" value="index.php/profile" />
            <input type="hidden" name="action" value="login" />
          </label>
Olvide mi contrase&ntilde;a!!</a>
          <label></label>
            
            <label><br />
            </label>
        </dt>
            </dl>
    </form></p>
</body>
</html>