origin33/app/html/login.php

32 lines
744 B
PHP
Raw Normal View History

2024-03-19 12:48:13 +00:00
<?php
$message="";
if(count($_POST)>0) {
if(($_POST["user_name"] == "akamai") && ($_POST["password"] == "akamai")){
setcookie("LOGIN", "true");
header("Location:index.php");
} else {
$message = "Invalid Username or Password!";
}
}
?>
<html>
<head>
<title>User Login</title>
</head>
<body>
<form name="frmUser" method="post" action="" align="center">
<div class="message"><?php if($message!="") { echo $message; } ?></div>
<h3 align="center">Enter Login Details</h3>
Username:<br>
<input type="text" name="user_name">
<br>
Password:<br>
<input type="password" name="password">
<br><br>
<input type="submit" name="submit" value="Submit">
<input type="reset">
</form>
</body>
</html>