$response = '';
$messageSent = '';
if (!empty($_POST)) {
extract ($_POST);
$todaysDate = date("Y-m-d");
$emailHost = "info@ridgewoodpress.com";
$recommend = !empty($recommendUsWho) ? "$recommendUs
If you already have, please tell us who you recommended: $recommendUsWho " : "$recommendUs";
$to = "Host Name <$emailHost>";
$subject = "Ridgewoodpress.com - Reorders";
$message = "
Ridgewoodpress.com
Feedback was sent $todaysDate
Name:
$name
Company:
$company
Address:
$address
City:
$city
State:
$state
Zip Code:
$zipCode
Phone:
$phone
Fax:
$fax
Email:
$email
Old Invoice #
$oldInvoice
Approx. Date
$approxDate
Reorder Qty.
$reorderQty
Due Date
$dueDate
Note any changes to artwork:
$noteChanges
";
if (!empty($email)) {
$email_ = $email;
} else {
$email_ = $emailHost;
}
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "FROM: Ridgewoodpress.com Feedback <$email>\r\n";
mail($to,$subject,$message,$headers);
$messageSent = "Your reorder has been sent. ";
}
function getSelectList($name,$nrChecked,$nrOfRecords) {
$response = '';
for ($i =1; $i <= $nrOfRecords; $i++) {
if ($_POST['$name'] == $i) {
$checked = "CHECKED";
} elseif ($nrChecked == $i) {
$checked = "CHECKED";
} else {
$checked = '';
}
$response .= " $i ";
}
return $response;
}
$customerService_ = getSelectList("customerService",0,10);
$qualityPrint_ = getSelectList("qualityPrint",0,10);
$producedQuickly_ = getSelectList("producedQuickly",0,10);
$response .= "
";
?>
include ("{$_SERVER['DOCUMENT_ROOT']}/php/rpr.left.side.php");?>
Please submit the following information to us in order for us to fulfill your Re-Order.
We will respond to your request as soon as we have located your order in our system.
include ("{$_SERVER['DOCUMENT_ROOT']}/php/rpr.right.side.php");?>