search partner login code

<div dir="ltr" style="text-align: left;" trbidi="on">

login.php

<?php
session_start();
$con = mysqli_connect("localhost","root","","sp");


if(isset($_POST['submit'])){

$email = mysqli_real_escape_string($con,$_POST['email']);
$password = mysqli_real_escape_string($con,$_POST['password']);

$select_user = "select * from users where  email='$email' AND pass='$pass' AND status='verified' ";


$query = mysqli_query($con,$select_user);

$check_user = mysqli_num_rows($query);


if ($check_user==1){
$_SESSION['user_email']= $email;
echo "<script>window.open('home.php','_self')</script>";

}
else { echo "<script>('Email or password is Incorrect')</script>" }


}


?>    include login.php at index.php include("login.php");




<br />
<!-- Begin myContactForm.com Form HTML -->

<form action="http://www.mycontactform.com/sendform/sendform.php" id="contactForm" method="post" name="contactForm" style="background-color: white; border: 0px solid #000000; margin: 0; padding: 0; width: 100%;">
<table cellpadding="0" cellspacing="0" style="width: 100%px;" summary="This table contains contact form fields.">
 <tbody>
<tr style="margin: 0; padding: 0;">
  <td style="background-color: white; border-bottom: 0px solid #d8d8d8; clear: left; margin: 0; padding: 5px;"><label for="email" style="color: black; float: left; font-family: &quot;arial&quot;; font-size: 14px; padding-top: 4px; width: 30%;">E-mail Address: <span style="color: red;">*</span></label>
  <input id="email" maxlength="100" name="email" required="required" size="20" style="background-color: white; border: 1px solid #000000; color: black; font-family: &quot;arial&quot;; font-size: 14px; padding: 2px;" type="email" />
  </td>
 </tr>
<tr style="margin: 0; padding: 0;">
  <td style="background-color: #efefef; border-bottom: 0px solid #d8d8d8; clear: left; margin: 0; padding: 5px;"><label for="q2" style="color: black; float: left; font-family: &quot;arial&quot;; font-size: 14px; padding-top: 4px; width: 30%;">Password <span style="color: red;">*</span></label> <input id="q2" maxlength="" name="q2" required="required" size="20" style="background-color: white; border: 1px solid #000000; color: black; font-family: &quot;arial&quot;; font-size: 14px; padding: 2px;" type="text" value="" />
  </td>
 </tr>
<tr style="margin: 0; padding: 0;">
  <td style="background-color: white; clear: left; margin: 0; padding: 5px;"><hr style="background-color: #d8d8d8; color: #d8d8d8; height: 1px;" />
</td>
 </tr>
<tr style="margin: 0; padding: 0;">
  <td style="background-color: white; clear: left; margin: 0; padding: 5px;"><input id="user" name="user" type="hidden" value="searchpartneronline" />
   <input id="formid" name="formid" type="hidden" value="437866" />
   <input id="subject" name="subject" type="hidden" value="searchpartner Login" />
   <input name="submit" style="border: solid; padding: 2px;" type="submit" value="Submit" />
 </td>
 </tr>
</tbody></table>
</form>
<!-- End myContactForm.com Form HTML -->




</div>