{if isset($_POST['Login'], $message)} {$message} {/if} <form method="POST" action="{echo:$_SERVER['PHP_SELF']}"> <input type="text" name="username" placeholder="Username" value="{isset($_POST['username']) ? $_POST['username'] : ''}"/> <br /> <input type="password" name="password" placeholder="Password" /> <br /> <button type="submit" name="Login">Login</button> <a href="register.php"><button type="button">Signup</button></a> </form>
info at phpclasses dot org