is missing the } for if (!empty($_POST)) {
if (!empty($_POST)) {
//code...
} else {
?>
<h1>Login</h1>
<form action="login.php" method="post">
Username:<br />
<input type="text" name="username" placeholder="username" />
<br /><br />
Password:<br />
<input type="password" name="password" placeholder="password" value="" />
<br /><br />
<input type="submit" value="Login" />
</form>
<a href="https://stackoverflow.com/questions/20549250/register.php">Register</a>
<?php
}
} // <---- this is missing
solved Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\PMSS\login.php on line 95 [closed]