If you are looking for our Store Listing Request form, please click here to be redirected.
To receive wholesale information from SWTC, Inc. please fill out and submit the form to the right and a member of our team will be in contact with you as soon as possible. Thanks!
@$form_block = "
";
if (@$_POST['op'] != "ds") {
// they need to see the form
echo "$form_block";
} else if ($_POST['op'] == "ds") {
if ($_POST['sender_name'] == "") {
$name_err = "Please enter your name! ";
$send = "no";
}
if ($_POST['sender_company'] == "") {
$company_err = "Please enter your company name! ";
$send = "no";
}
if ($_POST['sender_email'] == "") {
$email_err = "Please enter your e-mail address! ";
$send = "no";
}
if ($_POST['sender_phone'] == "") {
$phone_err = "Please enter your phone number! ";
$send = "no";
}
if ($_POST['sender_address'] == "") {
$address_err = "Please enter your address! ";
$send = "no";
}
if ($_POST['sender_inquiry'] == "") {
$message_err = "Please enter a message! ";
$send = "no";
}
if (@$send != "no"){
// it's ok to send, so build the mail
$ToEmail = "joe@soysilk.com";
$ToName = "Joe";
$ToSubject = "Wholesale Form - SWTC";
$EmailBody = "Sent By: $sender_name\n
Senders Company: $sender_company\n
Senders Email: $sender_email\n
Senders Phone: $sender_phone\n
Senders Address: $sender_address\n\n
Message Sent:\n$sender_inquiry\n";
$Message = $EmailBody.$EmailFooter;
mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$sender_name." <".$sender_email.">");
//display confirmation to users
echo "Mail has been sent! ";
} else if ($send == "no") {
//print error message
echo @"$name_err";
echo @"$company_err";
echo @"$email_err";
echo @"$phone_err";
echo @"$address_err";
echo @"$message_err";
echo "$form_block";
}
}
?>
|