When i click the 'submit button', it takes me to a page which says this. What's wrg? Pulling my hair here.
Warning: Cannot add header information - headers already sent by (output started at /usr/local/psa/home/vhosts/my.onefusion.com/httpdocs/portal/test/login.php:8) in /usr/local/psa/home/vhosts/my.onefusion.com/httpdocs/portal/test/login.php on line 15
<html>
<head>
<title>Login</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
// login.php
include ("functions.php");
if ($POST) {
$error = login_check($POST);
if (trim($error)=="") {
$SESSION["member_id"] = login($POST);
header("Location: index.php"); // Redirect correct member
exit();
} else {
print "Error:$error";
}
}
?>
<form method="post">
Username : <input type="text" name="username"><br />
Password : <input type="password" name="password"><br />
<input type="submit" value="Login">
</form>
</body>
</html>