login: forward redirect parameters on post form
[minimedit.git] / login / form.inc.php
index b7d8971d88e01295582a968fa0d9fcce424d0c44..7e78f8201cd988d55674e004b88944c94f8a8930 100644 (file)
@@ -1,8 +1,9 @@
 <h2>Inloggen</h2>
 
-<form action="" method="post">
+<form action="?" method="post">
+       <input type="hidden" name="goto" value="<?php print htmlspecialchars(@$_REQUEST['goto']); ?>" />
        <input id="login" name="login" placeholder="Gebruikersnaam" value="<?php
-               if (isset($_POST['login'])) print htmlspecialchars($_REQUEST['login']);
+               if (isset($_POST['login'])) print htmlspecialchars($_POST['login']);
        ?>" />
        <input id="pass" name="pass" type="password" value="" placeholder="Wachtwoord" />
        <input type="submit" value="Log in" />