Im using header("Location: ...) in der middle of the page. I know it shouldnt work but it does.
<?session_start();?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Login</title>
<link rel="stylesheet" type="text/css" href="css/admin.css">
</head>
<body>
<?
if($_POST["login"]){
if($user == "user" && $pwd == "pwd"){
session_register('user');
header("Location: content/maincontainer.php");
}else{
include("login/loginform.php");
}
}else{
include("login/loginform.php");
}
?>
</body>
</html>
And this is really working.
Any ideas, why?
Devel