<?php
	$username = $_POST['txtUser'];
	$password = $_POST['txtPass'];
	$arrUsername = array("master","ramD");
	$arrPassword = array("12345","qwerty");
	$temp = 0;
	if(!empty($username)){
	if($_POST['btnSubmit'])
		for($x = 0 ; $x <= count($arrUsername) ; $x++){
			if($arrUsername[$x] == $username && $arrPassword[$x] == $password){
					require_once("home.php");

					$temp = 1;
					break;
					}
			if($x == count($arrUsername) && $temp == 0)
				echo"Username does not exist!";


	}}
	else
		echo "Please fill values!";
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<link rel="shortcut icon" href="img/icon1.png">
<HEAD>
<TITLE>Login</TITLE>
<META NAME="Generator" CONTENT="TextPad 4.6">
<META NAME="Author" CONTENT="?">
<META NAME="Keywords" CONTENT="?">
<META NAME="Description" CONTENT="?">
</HEAD>
<style>
body{
	background-repeat:no-repeat;
	background-attachment:fixed;
	background-position:center;

}

</style>
<BODY bgcolor="black">
<br><br><br><br><br><br>
<form method="post">
<center><table border="1" bgcolor="#CCC" width="300" height="300">
<tr><td><center><font face="verdana" color="green" size="6">LOGIN</font></center></tr>
<tr><td><font face="verdana" color="green" size="3"><pre>Username       :<input type="text" name="txtUser"></font></tr>
<tr><td><font face="verdana" color="green" size="3"><pre>Password        :<input type="password" name="txtPass"></font></tr>
<tr><td><center><input type="submit" name="btnSubmit" value="SUBMIT">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" name="btnClear" value="CLEAR"></center></tr>


</form>

</table></center>

</BODY>
</HTML>
