3 <form action="?" method="post">
4 <input id="login" name="login" placeholder="Gebruikersnaam" value="<?php
5 if (isset($_POST['login'])) print htmlspecialchars($_POST['login']);
7 <input id="pass" name="pass" type="password" value="" placeholder="Wachtwoord" />
8 <input type="submit" value="Log in" />
11 <?php if (!isset($_POST['mail'])) { ?>
12 <p><a onclick="document.getElementById('mailpass').removeAttribute('hidden'); this.remove()">Wachtwoord vergeten?</a></p>
15 <form id="mailpass" action="/login/mailpass" method="post"<?php if (!isset($_POST['mail'])) { ?> hidden<?php } ?>>
16 <h3>Wachtwoord vergeten</h3>
17 <p>Als er een e-mailadres was ingesteld kun je hieronder een verzoek indienen om opnieuw een wachtwoord in te stellen.</p>
18 <input type="email" id="mail" name="mail" placeholder="E-mailadres" value="<?php
19 if (isset($_POST['mail'])) print htmlspecialchars($_POST['mail']);
21 <input type="submit" value="Verstuur" />