????

Your IP : 3.144.23.138


Current Path : /home2/morganrand/backup.morganrand.com/coupon/
Upload File :
Current File : /home2/morganrand/backup.morganrand.com/coupon/contact-form-handler.php

<?php 
$errors = '';
$mynumber = 'atheiler@mail.bradley.edu';//<-----Put Your number address here.
if(empty($_POST['name'])  || 
   empty($_POST['number']))
{
    $errors .= "\n Error: all fields are required";
}

$name = $_POST['name']; 
$number_address = $_POST['number']; 



if( empty($errors))
{
	$to = $mynumber; 
	$number_subject = "Call Me Back! $name";
	$number_body = "A customer would like to be called back. ".
	" Here are the details:\n Name: $name \n number: $number_address"; 
	
	$headers = "From: $mynumber\n"; 
	$headers .= "Reply-To: $number_address";
	
	mail($to,$number_subject,$number_body,$headers);
	//redirect to the 'thank you' page
	header('Location: contact-form-thank-you.html');
} 
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html>
<head><script src="//cdn.optimizely.com/js/1865631164.js"></script>
	<title>Contact form handler</title>
</head>

<body>
<!-- This page is displayed only if there is some error -->
<?php
echo nl2br($errors);
?>


<!-- Hotjar Tracking Code for wanderfuls.com -->
<script>
    (function(h,o,t,j,a,r){
        h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
        h._hjSettings={hjid:78806,hjsv:5};
        a=o.getElementsByTagName('head')[0];
        r=o.createElement('script');r.async=1;
        r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
        a.appendChild(r);
    })(window,document,'//static.hotjar.com/c/hotjar-','.js?sv=');
</script></body>
</html>