¿automatic login post?

Discussion in 'Installation/Configuration' started by Debin, Feb 26, 2015.

  1. Debin

    Debin New Member

    Code:
    <form action="http://demo3.ispconfig.org/content.php" method="post">
    <input name="username"  type="text"  value="admin">
    <input name="passwort"  type="password" value="demo">
    <input type="hidden" name="s_mod" value="login"/>
    <input type="hidden" name="s_pg" value="index"/>
    <input type="submit" value="Login">
    </form>
    
    LOGIN_REDIRECT:dashboard/dashboard.php
    Why not the auto login work?
     
    Last edited: Feb 26, 2015
  2. webguyz

    webguyz Active Member HowtoForge Supporter

  3. Debin

    Debin New Member

    Last edited: Feb 27, 2015
  4. Debin

    Debin New Member

    this is another form
    does not work in IE explorer, I think you have to put a header in php
    Code:
    <form action="http://demo3.ispconfig.org/content.php" target="dummy_login" method="post">
    <input name="username"  type="text"  value="admin">
    <input name="passwort"  type="password" value="demo">
    <input type="hidden" name="s_mod" value="login"/>
    <input type="hidden" name="s_pg" value="index"/>
    <input onclick="redireccionar();" type="submit" value="Login">
    </form>
    <iframe  name="dummy_login" style="display:none;"></iframe>
    
    
    <script type="text/javascript">
    var so = "http://demo3.ispconfig.org/index.php";
    function redireccionar(){
    setTimeout(function() {
      window.location = so
    }, 777);
    } 
    
    </script>
    
     

Share This Page