im getting this from redirecting w/ a header
Warning: Cannot modify header information - headers already sent by (output started at /home/guest/public_html/download/login.php:2) in /home/guest/public_html/download/login.php on line 5
here is the login script im using to redirect
<html>
<body bgcolor="#4F7E1C"><br><br><br><br><br><br><br>
<center>
<?php if($action == "login"){
if($pass == "password"){
$_SESSION["manager"];
header("Location: admin.php");
}else{
print "Wrong pass";
}
}else{
print "<form action=\"$PHP_SELF?action=login\" method=\"post\">
<input name=\"pass\" type=\"password\" value=\"\"><input type=\"submit\" value=\"Sign In\">
</form>\n";}?>
</center>
</body>
</html>
can someone help me make this script work 🙁 ive been woking on it for a while now in admin.php it uses this to see if the session is there
<?php
if ((isset($_SESSION["manager"])) && ($_SESSION["manager"] == "password")) {} ?>