i have to make a log in form that displays a msg if the user uses the username 'letmein'
if not, a msg will also be printed.
But the message to be printed aren't showing.
Here's my code:
<html>
<head>
<?php
if (isset($_POST['submit'])) {
$username = $_POST['username'];
if ($username = 'letmein') {
print ("ACCESS GRANTED. WELCOME!!");
}
else {
print ("INVALID USERNAME. ACCESS DENIED");
}
}
?>
</head>
<body bgcolor="#FFFFFF">
<center>
<form method="POST" action="login.php">
<input type="text" name="username">
<br><br>
<input type="submit" value="Login">
</form>
</center>
</body>
</html>