session_start(); ?>
check($_POST['code']);
if($valid == true) {
$name = stripslashes($_POST['name']);
$email = stripslashes($_POST['email']);
$question = stripslashes($_POST['question']);
if(empty($name) || empty($email) || empty($question))
{
echo '
All fields are compulsory to be filled. Please click back in your browser and try again.
';
exit();
}
$body = "name = $name \n\n email = $email \n\n question = $question";
if(mail('narender@zinginfotech.com', 'Question at onlineforexmarket.co.uk', $body, "From: \"$name\" "))
echo 'Thank you for your review. We will get back to you soon.
';
} else {
echo "Sorry, the code you entered was invalid. Go back to try again.";
}
exit();
}
?>
Contact Us