        <!DOCTYPE html>
    <html lang="en" class="no-js">

    	<head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <head>
        	 <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">

            <link href="https://getbootstrap.com/docs/3.3/dist/css/bootstrap.min.css" rel="stylesheet">
            <link href="css/style.css" rel="stylesheet">
           <link href="https://getbootstrap.com/docs/3.3/assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
           <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">    
<!--        <script src="https://getbootstrap.com/docs/3.3/assets/js/ie-emulation-modes-warning.js"></script>-->
        <style>
            body {background:#d0abab;}

            .box, .input-group, h3{
              text-align:center;
                position:relative;
                top:70px;
            }

              .box h3{
              text-align:center;
                position:relative;
                top:40px;
                color: #056d07;
            }
            .box {
                width:70%;
                height:240px;
                background:#f5f5f5;
                margin:40px auto;
            }
            .effect5
                {
                  position: relative;
                }
                .effect5:before, .effect5:after
                {
                  z-index: -1;
                  position: absolute;
                  content: "";
                  bottom: 25px;
                  left: 10px;
                  width: 50%;
                  top: 80%;
                  max-width:300px;
                  background: #777;
                  -webkit-box-shadow: 0 35px 20px #777;
                  -moz-box-shadow: 0 35px 20px #777;
                  box-shadow: 0 35px 20px #777;
                  -webkit-transform: rotate(-8deg);
                  -moz-transform: rotate(-8deg);
                  -o-transform: rotate(-8deg);
                  -ms-transform: rotate(-8deg);
                  transform: rotate(-8deg);
                }
                .effect5:after
                {
                  -webkit-transform: rotate(8deg);
                  -moz-transform: rotate(8deg);
                  -o-transform: rotate(8deg);
                  -ms-transform: rotate(8deg);
                  transform: rotate(8deg);
                  right: 10px;
                  left: auto;
                }
        </style>
        	
        </head>

        <body>
        		<div class="container">
        		  <div class="box effect5">
                    <h3>It's a pity you are longer interested in our newsletter.To remove your email from mailing list.</h3>
			
                      <div class="col-lg-12">
                        <div> 
                             <input type="hidden" id="oid" name="oid" value ="<?php echo $_REQUEST['oid'];?>" />
                          <input type="email"  name="email" id="email"  style="width: 100%;margin-top: 10%;height: 40px;" placeholder="Enter Your Email">
                          <span class="">
                         <div style="text-align: center"><button style="background-color:#cd6252;color:#fff;border: none;border-radius: 4px;margin-top:16px;font-size: 18px;margin-left: 15px;" VALUE="Unsubscribe" onClick="submt()">Unsubscribe</button></div>

 <div id='reslt2' style='color:red'></div> 
                          </span>
                        </div>
                      </div>

                    </div>
                </div>
        	</div>
        </body>
        </html>
           <script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script  type="text/javascript" >


function submt()
{
	
var email = $('#email').val();
var oid= $('#oid').val();
var emailReg = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
if(email =='')
{
$('#reslt2').text('Please enter email!');
}
else if (!emailReg.test(email))
{
$('#reslt2').text('Please insert valid Email');
}
else
{
$.ajax({
type: "POST",
url: "unsubsuccess.php",
data: "mail="+email+"&oid="+oid,
success: function(data)
{
$('#reslt2').html("<b>Unsusbcribed Successfully!!");
}
});
return false;
}

}
</script>
