Source code:
index.php
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Himel Sarkar</title>
<link rel="stylesheet" href="">
</head>
<body>
<form action="welcome.php" method="get" accept-charset="utf-8">
<input placeholder="User Name" type="text" name="username">
<input placeholder="Password" type="password" name="password">
<input type="submit" name="" value="login">
</form>
</body>
</html>
---------------------------------------------------------------------------------------------------------------------
welcome.php
<?php
$dbu="testmail@gmail.com";
$dbp="12345";
echo "Database User name: ".$dbu. "<br>And password: ".$dbp."<br>";
$u=$_REQUEST['username'];
$p=$_REQUEST['password'];
if ($dbu==$u) {
echo '<font color="green"><br><h1>You are logged in </h1><br></font>';
} else {
echo '<font color="red"><br><h1>Not logged in </h1><br></font>';
}
echo "User info:".$u.":".$p;
?>








