include("includes/header.php"); if(isset($_POST['contact_submit'])){ if(empty($_SESSION['captcha_code'] ) || strcasecmp($_SESSION['captcha_code'], $_POST['captcha_code']) != 0){ $error = "Please Enter a Valid Captcha code"; } else { $to = $_POST['email_contact']; $subject = "Acknowledgement fom Easy Spelling"; $subject_admin = "A new enquiry received"; $message = "
Hello,
We have received your enquiry. Our team will look into this and reply within 24 hours.
Best regards,
Easy Spelling
"; $message_admin = "Hello,
You have received new enquiry:
Name : ".$_POST['name_contact']."
Email : ".$_POST['email_contact']."
Subject : ".$_POST['subject_contact']."
Message : ".$_POST['message_contact']."
Best regards,
Easy Spelling
"; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $headers .= 'From: Easy-Spelling