//header("Location: contact_ret.html");
// process.php3
// send to PEDDLER637@aol.com
/*
Incoming variables
a1_name
a2_company
a2_address
a4_city
a5_state
a6_zip
a7_businessPhone
// requested info - 1st set
c_LTL
c_Multi_Carrier
c_Receiving
c_Bar_Coding
c_Integration
c_Data_Collection
c_EDI
c_Export_Form
c_Labeling
// requested info - second set
// if the zip code from above is between 14000 - 14699 then an email will be sent saying
// "Hey buddy, you need local service informtion!! We can't provide info on this stuff, dude.. "
c_Mailing_Machines
c_Scales
c_Mail_Accouting
c_Folding_Machines
c_Inserting_Equipment
c_Addressing_Systems
//
g_comments
*/
// checking if any of the information above is valid... if so, create a msg then ship out
if (!empty($email)) {
if (($c_LTL =="YES") || ($c_Multi_Carrier =="YES") || ($c_Receiving =="YES") || ($c_Bar_Coding =="YES") || ($c_Integration =="YES") || ($c_Data_Collection =="YES") || ($c_EDI =="YES") || ($c_Export_Form =="YES") || ($c_Labeling =="YES")) {
$recip_msg ="
The information you requested is in process. You will recieve information shortly.
Thank you for visiting our website and requesting information!!\n
Thanks!\nAdvanced Business Machines\n";
$action = "YES";
}
// end email check
if (($a6_zip >=14000) && ($a6_zip <=14699)) {
if (($c_Mailing_Machines =="YES") || ($c_Scales =="YES") || ($c_Mail_Accouting =="YES") || ($c_Folding_Machines =="YES") || ($c_Inserting_Equipment =="YES") || ($c_Addressing_Systems == "YES")) {
if (empty($recip_msg)) {
$recip_msg ="";
}
$recip_msg.="Some of the information you have requested is not avalible directly at this time for your area.:\n";
$recip_msg.="You requested the following, that is not avalible:\n";
if ($c_Mailing_Machines =="YES") {
$recip_msg.="Mailing Machines\n";
}
if ($c_Scales =="YES") {
$recip_msg.="Scales\n";
}
if ($c_Mail_Accouting =="YES") {
$recip_msg.="Main Accouting\n";
}
if ($c_Folding_Machines =="YES") {
$recip_msg.="Folding Machines\n";
}
if ($c_Inserting_Equipment =="YES") {
$recip_msg.="Inserting Equipment\n";
}
if ($c_Addressing_Systems == "YES") {
$recip_msg.="Addressing Systems\n";
}
if ($action) {
echo("ps. ");
}
$recip_msg. ="If you requested any information outside of those listed above for your area, that we cannot provide, you will contacted with that information as soon as possible.
... and again, thanks for visiting our website!";
}
}
echo("$recip_msg");
mail("$email", "$recip_subject", "$recip_msg", "From: info@abmonline.com");
}
echo("$recip_msg
");
$msg ="Information for:\n
--------------------------------------------------\n
Name: $a1_name\n
Company: $a2_company\n
Address: $a2_address\n
City: $a4_city\n
State: $a5_state\n
Zip: $a6_zip\n
Business #: $a7_businessPhone\n
--------------------------------------------------\n
Information requested: \n";
if ($c_LTL=="YES") {
$msg.="LTL\n";
}
if ($c_Multi_Carrier=="YES") {
$msg.="Multi Carrier\n";
}
if ($c_Receiving=="YES") {
$msg.="Receiving\n";
}
if ($c_Bar_Coding=="YES") {
$msg.="Bar Coding\n";
}
if ($c_Integration=="YES") {
$msg.="Integration\n";
}
if ($c_Data_Collection=="YES") {
$msg.="Data Collection\n";
}
if ($c_EDI=="YES") {
$msg.="EDI\n";
}
if ($c_Export_Form=="YES") {
$msg.="Export Form\n";
}
if ($c_Labeling =="YES") {
$msg.="Labeling\n";
}
if (($a6_zip <=14000) || ($a6_zip >=14699)) {
if ($c_Mailing_Machines =="YES") {
$msg.="Mailing Machines\n";
}
if ($c_Scales =="YES") {
$msg.="Scales\n";
}
if ($c_Mail_Accouting =="YES") {
$msg.="Main Accouting\n";
}
if ($c_Folding_Machines =="YES") {
$msg.="Folding Machines\n";
}
if ($c_Inserting_Equipment =="YES") {
$msg.="Inserting Equipment\n";
}
if ($c_Addressing_Systems == "YES") {
$msg.="Addressing Systems\n";
}
// end zip check
}
else {
if (($a6_zip >=14000) || ($a6_zip >=14699)) {
$msg.="The customers zip was between 14000 and 14699, so an email was sent back stating that information was not avalible for some of the information they requested.";
}
}
$to = "waller@choiceoneonline.com";
$from = "info@abmonline.com";
//$to = "PEDDLER637@aol.com";
echo("$msg
");
$subject = "Request for information - www.abmonline.com";
mail("$to", "$subject", "$msg", "From: $from ");
?>