include_once('inc/header_new.php'); ?>
$thank_you_msg = '';
$err_msg = '';
if($_REQUEST[submit]){
if( $_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code']) ) {
// Insert you code for processing the form here, e.g emailing the submission, entering it into a database.
unset($_SESSION['security_code']);
} else {
// Insert your code for showing an error message here
$err_msg = 'Sorry, you have provided an invalid security code';
}
}
if($_REQUEST[submit] && $err_msg == ''){
//$email_from = 'info@webdco.com';
$email_from = $_REQUEST[email];
$email_to = 'help@webdco.com';
$subject = 'Help request from webdco.com Help page';
$header = "From: $email_from
BCC: webdsoft@yahoo.ca";
$body = "
Name: $_REQUEST[name]
Email: $_REQUEST[email]
Phone: $_REQUEST[phone]
Comments:
$_REQUEST[Comments]
";
$today = date("F j, Y, g:i a");
$body = $body . "\n\nSend out on $today\n\n";
mail($email_to, $subject, $body, $header);
$thank_you_msg = '
Thanks.
We will answer your question shortly.
';
}
?>