<?php session_start();
	if(isset($_POST['login'])) {
		$username=trim($_POST['username_p']);
		$password=trim($_POST['password_p']);
		if($username=='admin_portal' and $password=='mysamPLogs@23#!'){
			$_SESSION['is_login']=true;
			header("location:login.php");
		}
	}
?>

<form method="post" action="">
	<center><div style="width:300px;margin-top:200px">
		<fieldset>
			<legend>Log In</legend><br />
			<label>Username:</label> <input type="text" name="username_p" /><br /><br />
			<label>Password:</label> <input type="password" name="password_p" /><br /><br />
			<input type="submit" name="login" value="Log In"/><br /><br />
		</fieldset>
	</div></center>
</form>