File: /home/nyiet8349bzl/Backup/sbc_back/homedir/public_html/livable-cities/Conf2017admin/login.php
<?php
include("conn/db_conn.php");
session_start();
if(isset($_POST['login'])){
if($_POST['email']=="" || $_POST['password']==""){
$msg = "Please Enter EmailId and Password.";
}
else{
$email = $_POST['email'];
$password = $_POST['password'];
$sql = mysql_query("SELECT * FROM tbl_login WHERE fld_email ='$email' and fld_pass ='$password'");
//print_r(mysql_fetch_array($sql));
if(mysql_num_rows($sql)>0){
$_SESSION['email'] = $email;
echo "<script>window.location.href='index.php'</script>";
}
else{
$msg = "Please Enter Correct EmailId and Password.";
}
}
}
?>
<!DOCTYPE html>
<html>
<head>
<title>NCR Fibernet</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="StartPooling,Cab Booking,PoolCab" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- //For-Mobile-Apps -->
<!-- Style --> <link rel="stylesheet" href="lucid_loginform/css/style.css" type="text/css" media="all" />
<style type="text/css">
h3{
text-align: center;
font-size: 20px;
font-family: Lemon-Regular;
color:#F00;
}
</style>
</head>
<body>
<div class="container">
<h1 ><img src="images/du-logo2.png" style="margin-left:" height="150px;"/></h1>
<h3><?php echo $msg;?></h3>
</div>
<div class="signin">
<h2></h2>
<form method="post" action="login.php">
<input type="email" class="user" name = "email" placeholder="Enter Email Id" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = '';}" />
<input type="password" class="pass" name="password" placeholder="Enter Password" value="" onfocus="this.value = '';" maxlength="15" onblur="if (this.value == '') {this.value = '';}" />
<label>
<a href="forget.php" style="color:#FFF;">Forget Password</a>
</label>
<input type="submit" name="login" value="LOGIN" />
</form>
</div>
</div>
</body>
</html>