if (@$_REQUEST['hdnSubmit'])
{
$to = 'pam@louet.com';
//$to = 'info@louet.com';
//$to = 'patrick@louet.com';
$from = @$_REQUEST['email'];
$head = "From: $from";
$sub = 'New Contact Form Submission';
$cont = "\nNEW CONTACT FORM SUBMISSION\n\n";
if(isset($_POST['chkKnitting']))
{
if($_POST['chkKnitting'] == "true")
$emailBody .= "Knitting was selected.\r\n";
}
if(isset($_POST['chkWeaving']))
{
if($_POST['chkWeaving'] == "true")
$emailBody .= "Weaving was selected.\r\n";
}
if(isset($_POST['chkCrochet']))
{
if($_POST['chkCrochet'] == "true")
$emailBody .= "Crochet was selected.\r\n";
}
if(isset($_POST['chkLouetEquip']))
{
if($_POST['chkLouetEquip'] == "true")
$emailBody .= "Louet Equipment was selected.\r\n";
}
if(isset($_POST['chkSpinning']))
{
if($_POST['chkSpinning'] == "true")
$emailBody .= "Spinning was selected.\r\n";
}
if(isset($_POST['chkHandDyer']))
{
if($_POST['chkHandDyer'] == "true")
$emailBody .= "Hand Dyer was selected.\r\n";
}
$emailBody .= '\r\n Business Name: '.@$_REQUEST['txtBusName']."\r\n";
$emailBody .= ' Contact Name: '.@$_REQUEST['txtContactName']."\r\n";
$emailBody .= ' Phone Number: '.@$_REQUEST['txtPhoneNumber']."\r\n";
$emailBody .= ' Email: '.@$_REQUEST['txtEmail']."\r\n";
$emailBody .= ' City: '.@$_REQUEST['txtCity']."\r\n";
$emailBody .= ' State: '.@$_REQUEST['txtState']."\r\n";
$emailBody .= ' Country: '.@$_REQUEST['txtCountry']."\r\n";
$emailBody .= ' Questions/Comments: '.@$_REQUEST['txtQuestions']."\r\n";
if (mail($to,$sub,$emailBody,$head))
{
// $results = 'Submission successful. Thank you for your inquiry.';
$site_url="www.louet.com/dealer/thanks.shtml";
header("Location: http://$site_url");
}
else
{
$results = 'There was a problem sending your inquiry. Please try again later.';
}
}
?>
Louet North America
echo file_get_contents('../includes/header.lbi'); ?>
echo file_get_contents('../includes/nav_dealer.lbi'); ?>
echo file_get_contents('../includes/footer.lbi'); ?>