can someone help me to display wrong username and password just above the signin form ?? it shouldn't redirect to other page ,rather it must display just above the signin form my code contains
<!Doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="mainpagestyle.css">
</head>
<style>
body {
background:#99ffff;
height:100%;
width:100%;
}
#footer {
poition:absolute;
padding: 1em;
color: white;
background-color: black;
clear: left;
text-align: center;
width: 100%;
border: 1px solid gray;
bottom : 0;
margin-top:90%;
}
</style>
<body>
<div class="container">
<h1>"MARK"</h1>
<ul id="headline" class="fallingtextrotator" style="height:2em">
<div class="grad"></div>
<form action="checkuser-pass.php" method="POST">
<div class="header">
<div>LOG<span>IN</span> </div>
</div>
</br>
<div class="login">
User Name: <input type="text" name="username"><br>
Password:    <input type="password" name="password"><br><br>
<input type="submit" name="submit" value="Login!">
        <a href=" ">FORGOT PASSWORD</a></div>
</div>
</br>
</form>
<ul id="headline" class="fallingtextrotator" style="height:2em">
<div class="grad"></div>
<form action="checkguest.php" method="POST">
<div class="headerr">
<div>SIGN<span>UP</span> </div>
</div>
</BR>
<div class="signup">
User Name: <input type="text" name="username"><br><br>
Email Id:    <input type="email" name="emailid"><br>
Password:    <input type="password" name="password"><br><br>
<input type="submit" name="submit" value="signup!">
</form>
</div>
</section>
<section class="footer">
<h5> © Navya Chowdary</h5>
<p><a href="#">Carrers </a>     <a href="#"> Blog</a>  
   <a href="#">Bussiness</a>
     <a href="#"> About Us</a>     <a
href="#">Suggestions or Complaints</a>      <a href="#">Bug</a>
</section>
</body>
</html>
and here comes my checkuser-pass.php
<?php
session_start();
$host="127.0.0.1";
$username="root";
$password="";
$db="markconnect";
$tb="userform";
$mysqli = new mysqli($host,$username,$password,$db) or die(mysqli_error());;
//DEFINE USERNAME AND PASSWORD
$username=$_POST['username'];
$password=$_POST['password'];
//echo md5($password); exit;
// To protect MySQL injection
$username = stripslashes($username);
$password = stripslashes($password);
$username = mysqli_real_escape_string($mysqli,$username);
$password = mysqli_real_escape_string($mysqli,$password);
$password = md5($password);
//echo $password; exit;
$sql="SELECT * FROM $tb WHERE username='$username' and password='$password'";
//echo $sql; exit;
$result=mysqli_query($mysqli,$sql);
//43 Mysql_num_row is counting table row
$count=mysqli_num_rows($result);
//print_r($count);
if($count==1){
$_SESSION['username'] = $username;
//include 'saver.php';
header("Location: saver.php");
}
else {
echo "Wrong Username or Password";
// <p>Please enter both username and password.</p>
}
ob_end_flush();
?>