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?
Because of AJAX your example won't work. A forum member (LKTechnik)has come up with an elegant solution to accomplish what your trying to do: https://www.howtoforge.com/community/threads/embedd-login-form-into-website.40459/#post-320974
easier and with less code will be me edit the file content.php to return to index.php because in reality if logs on
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>