File: /home/halcosmu/public_html/healthinsurance.ratequalified.com/thankyou.php
<?php
if (!empty($_POST)){
$name=$_POST["name"];
$email=$_POST["email"];
$Phone=$_POST["phone"];
$state=$_POST["state"];
$dob=$_POST["dob"];
$address=$_POST["address"];
$ip=$_SERVER['REMOTE_ADDR'];
$to = "info@ratequalified.com";
//$to = "sunil@halcommarketing.com";
$subject = "New form submission on Health Insurance by $name";
$message = "
<html>
<head>
<title>New submission from Health Insurance</title>
</head>
<body>
<p>New submission from Health Insurance</p>
<table border='1' cellpadding='10' cellspacing='0'>
<tr>
<th>Name</th>
<th>$name</th>
</tr>
<tr>
<th>Email</th>
<th>$email</th>
</tr>
<tr>
<th>Phone</th>
<th>$Phone</th>
</tr>
<tr>
<th>State</th>
<th>$state</th>
</tr>
<tr>
<th>Date of Birth</th>
<th>$dob</th>
</tr>
<tr>
<th>IP Address</th>
<th>$ip</th>
</tr>
</table>
</body>
</html>
";
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
// More headers
$headers .= 'From: <webmaster@ratequalified.com>' . "\r\n";
mail($to,$subject,$message,$headers);
$servername = "localhost";
$database = "healthinsurance";
$username = "healthinsurance";
$password = "Jffd#235813";
//Database Connection
$link = mysqli_connect($servername, $username, $password, $database);
// Check connection
if($link === false){
die("ERROR: Could not connect. " . mysqli_connect_error());
}
// Escape user inputs for security
$name = mysqli_real_escape_string($link, $_REQUEST['name']);
$email = mysqli_real_escape_string($link, $_REQUEST['email']);
$phone = mysqli_real_escape_string($link, $_REQUEST['phone']);
$state = mysqli_real_escape_string($link, $_REQUEST['state']);
$dob=$_POST["dob"];
$jornaya_id = mysqli_real_escape_string($link, $_REQUEST['universal_leadid']);
$ip=$_SERVER['REMOTE_ADDR'];
// Attempt insert query execution
$sql = "INSERT INTO leads (name, email, phone, state, dob, ip, jornaya_id) VALUES ('$name', '$email', '$phone', '$state' , '$dob' , '$ip' , '$jornaya_id')";
if(mysqli_query($link, $sql)){
?>
<html lang="en">
<head>
<title>Health Insurance</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="style.css" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=Oswald:400,700" rel="stylesheet">
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1025825550827041');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=1025825550827041&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-144493420-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-144493420-1');
</script>
</head>
<style>
.fa-user {
font-size: 35px;
display: inline-block;
border-radius: 60px;
box-shadow: 0px 0px 2px #fff;
padding: .5em .6em;
}
.fa-check {
font-size: 35px;
display: inline-block;
border-radius: 60px;
box-shadow: 0px 0px 2px #fff;
padding: .5em .5em;
}
.fa-dollar {
font-size: 35px;
display: inline-block;
border-radius: 60px;
box-shadow: 0px 0px 2px #fff;
padding: .5em .7em;
}
.client img{
padding: 0 20px;
}
</style>
<body>
<div class="container-fluid" style="background-color: #0099D5; height: 10px;"></div>
<div class="container">
<div class="row">
<div class="col-md-6 col-sm-12"><h2 style="font-family: 'Anton', sans-serif; padding: 15px 0; font-size: 35px;"><span class="fa fa-heartbeat"></span> HM<span style="color: #F69234; font-size: 20px;"><b> HEALTH INSURANCE<b></span></h2></div>
<div class="col-md-6 col-sm-12">
<div class="row" style="margin-top: 20px;">
<div class="col-md-4 col-sm-4 col-xs-4"><img src="img/bbb.jpg" alt="bbb" class="img-responsive"/></div>
<div class="col-md-4 col-sm-4 col-xs-4"><img src="img/norton.jpg" alt="norton" style="display: block;margin: 0 auto;" class="img-responsive"/></div>
<div class="col-md-4 col-sm-4 col-xs-4"><img src="img/dmca.png" alt="dmca" class="img-responsive"/></div>
</div>
</div>
</div>
</div>
<div class="container thankyou">
<div class="row">
<div class="col-md-5 col-sm-6 col-xs-12 lady"><img src="img/thankyou.jpg" alt="thankyou" class="img-responsive"></div>
<div class="col-md-5 col-md-offset-2 col-sm-6 col-xs-12 thanktext"><img src="img/thankstext.jpg" class="img-responsive" alt="thankyou" >
<h4 style="text-align: center;color: #333;">One of our Sales Representative will get in touch with you with the offer and the details.
Want a Quicker Response. </h4>
</div>
</div>
</div>
<a href="http://healthinsurance.ratequalified.com" style="text-align:center; margin: 30px;" class="btn btn-warning"><i class="fa fa-chevron-left" aria-hidden="true"></i> Back to Page</a>
<footer>
<p>Copyright All Rights Reserved © <?php echo date("Y");?><a href="#" data-toggle="modal" data-target="#ppolicy" style="color: #fff; text-decoration: none;"> • Privacy Policy</a> <a href="#" data-toggle="modal" data-target="#disc" style="color: #fff; text-decoration: none;"> • Disclaimer </a></p>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Modal privacy policy -->
<div id="ppolicy" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3 class="modal-title text-center"><b>Privacy Policy</b></h3>
</div>
<div class="modal-body">
<h4>What information do we ask from our clients?</h4>
<p>The information clients submit in the form of registering on our website or submitting forms is the
only information we collect. Other than that, any information given out by a client on the phone
with our call centers might be recorded in order to help us serve you better. Website traffic is
tracked but the identify of the user is not tracked. Collecting information from website traffic
like this is commonly called "non-public personal information".</p>
<h4>How do we use the information you give us?</h4>
<p>Any information provided to us by a client is used to update the serves we provide in order to serve
you better. Additionally, all of the information we collect is confidential. This confidential
information is given out only in the case of legal issues and if they are asked for by a court of
law.</p>
<h4>Do we protect your personal information? How? </h4>
<p>We keep a track of any information provided to us in secure databases. Employees do not gain access
to this information unless he/she is working on a particular case. In such cases, the employee has
access only to the amount of information required in order to provide you with the correct leads and
hence serve you better. No information that we store is made public. However, in the case of legal
issues if asked for by a court of law, the information will be made public. If at any point, there
is known to be an error in the information provided, the client is required to file for a request
for the update of this personal information in order for us to serve you better.</p>
<h4>How do we use the information you give us?</h4>
<p>Any information provided to us by a client is used to update the serves we provide in order to serve
you better. Additionally, all of the information we collect is confidential. This confidential
information is given out only in the case of legal issues and if they are asked for by a court of
law.</p>
<h4>Cookies</h4>
<p>Cookies are utilized for us to efficiently track the usage and traffic on our website in order for us
to make the necessary updates to serve you better. </p>
<h4>Privacy Policy Changes</h4>
<p>All changes in the privacy policy of this website will be made known to all clients via email. This
communication will take place 30 days before the implementation of these changes. We treat the
personal information we collect as highly sensitive, and confidential. Hence none of the information
we collect is sold, traded or rented.</p>
</div>
</div>
</div>
</div>
<!-- Modal Disclaimers -->
<div id="disc" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3 class="modal-title text-center"><b>Disclaimer</b></h3>
</div>
<div class="modal-body">
<p>All of the content found on our website is the property of HM Health Insurance. The information
provided on our website is subject to change short of prior notice. In the case of a change, updated
information will be available on our website at the earliest possible time. Additionally, all our
services are also subject to change when required./p>
<p> HM Health Insurance will not be held responsible for any losses incurred from using our
services or our website at any point of time. Any information provided to us by clients is kept
highly confidential with the best security measures in place. In the case of a legal matter or if
the information is needed by a court of law, HM Health Insurance will be forced to make
information public. Additionally, we will not be held responsible for information becoming public in
cases of hacking and publicizing of information by un-ethical means. </p>
<p>In the case where other websites are linked on our website, the content found on such websites is not
under the control of HM Health Insurance and hence we will not be held responsible for such
content. Visiting those websites should be done through the discretion of the client. </p>
<p>In the past, our leads have shown to raise profits and be completely accuration. However, in the case
of any loss or inaccuracy, HM Health Insurance will not be held liable for such losses. </p>
<p>At HM Health Insurance, we have a team of enthusiastic individuals who work continuously in
order to make the entire experience for our users perfect. If any changes occur, our team works
towards making the appropriate changes in our content as soon as possible. However, we will not be
held responsible for clients receiving outdated information from content that has not been updated
on our website. Additionally, we will not be held liable for any inconveniences caused from our
website being unavailable for some time. If for some reason, our website is inaccessible, we will
not be held responsible for that though our best efforts will be put into rectifying the problem as
soon as possible.</p>
</div>
</div>
</div>
</div>
<?php
} else{
echo "ERROR: Could not able to execute $sql. " . mysqli_error($link);
}
// Close connection
mysqli_close($link);
}
?>
<script>
function submitBday() {
var Q4A = "Your birthday is: ";
var Bdate = document.getElementById('bday').value;
var Bday = +new Date(Bdate);
Q4A += Bdate + ". You are " + ~~ ((Date.now() - Bday) / (31557600000));
var theBday = document.getElementById('resultBday');
theBday.innerHTML = Q4A;
}
</script>
</body>
</html>