<style type="text/css">
<!--
.login_style1 {font-size: 1.8em}
-->
</style>
<form name="form1" method="post" action="core/login.php">
<div align="center">
<p class="login_style1">Login</p>
<div id="login_error"><font color=red><strong><?= $_SESSION['error'] ?></strong></font></div>
<table width="300" border="0">
<tr>
<td>Username</td>
<td>
<label>
<input type="text" name="username" id="username">
</label>
</td>
</tr>
<tr>
<td>Password</td>
<td><label>
<input type="password" name="password" id="password">
</label></td>
</tr>
</table>
<p>
<label>
<input type="submit" name="Submit" value="Login">
</label>
</p>
</div>
</form>
<?PHP
if($_SESSION['error'] == "Password Incorrect!") {
$error_field = "password";
}
elseif($_SESSION['error'] == "Username Incorrect!") {
$error_field = "username";
}
?>
<script type="text/javascript" language="javascript">
new Effect.Pulsate(document.getElementById('<?= $error_field ?>'));
</script>