$redirect = "contact_prizewinner.html";
//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 at this time, 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
/////////////////////////////////////////////////////////////// customer email
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")) {
/*
c_Mailing_Machines
c_Scales
c_Mail_Accouting
c_Folding_Machines
c_Inserting_Equipment
c_Addressing_Systems
*/
$msg = "Thank you for you request!\n";
$msg.="Somone will be in contact with you shortly.\n";
// end checking zip
$action = 1;
}
}
// now else statement
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")) {
if ($action ==1) {
// action = 2 means that both if's fired and I need to push the email through with this result
$action = 2;
}
/*
c_LTL
c_Multi_Carrier
c_Receiving
c_Bar_Coding
c_Integration
c_Data_Collection
c_EDI
c_Export_Form
c_Labeling
*/
}
$msg ="Thank you for you request!\n";
$msg.="Somone will be in contact with you shortly.\n\n";
$msg.="Thank You!\n";
$msg.="Abmonline.com\n";
if (($action == 2) || (empty($action))) {
// JUST INCASE an older browser died on the javascript check from the form....
if (!empty($email)) {
$recip_to = $email;
$recip_subject = "www.abmonline.com - Information Reqest";
$recip_msg = $msg;
$recip_email = "info@abmonline.com";
mail("$recip_to", "$recip_subject", "$recip_msg", "From: $recip_email");
header("Location: contact_ret.html");
}
}
else {
if ($action ==1) {
// send em' here if the information they requested was unavlible
header("Location: $redirect");
}
}
//unset($msg);
$msg1 = "Information From:\n";
$msg1.="------------------------------------\n";
$msg1.="Name: $a1_name \n";
$msg1.="Company: $a2_company\n";
$msg1.="Address: $a3_address\n";
$msg1.="City: $a4_city\n";
$msg1.="State: $a5_state\n";
$msg1.="ZIP: $a6_zip\n";
$msg1.="Business Phone: $a7_businessphone\n";
$msg1.="Email: $email\n";
$msg1.="Requested Information: \n";
$msg1.="------------------------------------\n";
if ($c_Mailing_Machines == "YES") {
$msg1.="Mailing Machines";
}
if ($c_Scales == "YES") {
$msg1.="Scales\n";
}
if ($c_Mail_Accouting == "YES") {
$msg1.="Mail Accounting\n";
}
if ($c_Folding_Machines == "YES") {
$msg1.="Folding
Machines\n";
}
if ($c_Inserting_Equipment == "YES") {
$msg1.="Inserting
Equipment\n";
}
if ($c_Addressing_Systems == "YES") {
$msg1.="Addressing
Systems\n";
}
if ($c_LTL == "YES") {
$msg1.="LTL \n";
}
if ($c_Multi_Carrier == "YES") {
$msg1.="Multi Carrier \n";
}
if ($c_Receiving == "YES") {
$msg1.="Receiving \n";
}
if ($c_Bar_Coding == "YES") {
$msg1.="Bar Coding \n";
}
//echo("$msg1");
if ($c_Integration == "YES") {
$msg1.="Integration \n";
}
if ($c_Data_Collection == "YES") {
$msg1.="Data Collection\n";
}
if ($c_EDI == "YES") {
$msg1.="EDI\n";
}
if ($c_Export_Form == "YES") {
$msg.="Export Form \n";
}
if ($c_Labeling == "YES") {
$msg1.="Labeling\n";
}
unset($from);
//$to = "waller@choiceoneonline.com";
$to = "abminc@localnet.com";
$from = "info@abmonline.com";
$subject = "Request for information - contact.php3";
mail("$to", "$subject", "$msg1", "From: $from");
//mail("$to", "$subject", "$msg1", "From: $from ");
?>