I get this error for some reason when i try to make a login page for my website. I'm linking it back to my database. Here is the code I'm using:
<?php
session_start();
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html"; charset="utf-8" />
<title>Chef Andreas - Login</title>
</head>
<body>
<?php
$form = "<form action='./Login.php' method='post'>
<table>
<tr>
<td>Username:</td>
<td><input type='text' name='user' /></td>
</tr>
<tr>
<td>Password:</td>
<td><input type='password' name='password' /></td>
</tr>
<tr>
<td></td>
<td><input type='submit' name='loginbtn' value='Login' /></td>
</tr>
</table>
</form>;
if($_POST['loginbtn']){
$user = $_POST['user'];
$user = $_POST['password'];
if($user){
if($password){
echo"$user - $password <hr /> $form";
}
else
echo "You must enter your password. $form";
}
else
echo "You must enter your username. $form";
}
else
echo $form;
?>
</body
</html>