<?php
//
// Here we add an area where messages are displayed (error or success messages).
//

if (isset($error)) {

if ($error === true) {
$class = "error";
$message = $ccContactOBJ->lastError;
} else {
$class = "success";
$message = "Contact ".htmlspecialchars($postFields["email_address"], ENT_QUOTES, 'UTF-8')." Added.";
}

echo '<div class="'.$class.'">';
echo $message;
echo '</div>';
}

?></font>
<?php
$first_name = $_REQUEST['first_name'] ;
$middle_name = $_REQUEST['middle_name'] ;
$last_name = $_REQUEST['last_name'] ;
$company_name = $_REQUEST['company_name'] ;
$email_address = $_REQUEST['email_address'] ;
$home_num = $_REQUEST['home_num'] ;
$fax_num = $_REQUEST['fax_num'] ;
$adr_1 = $_REQUEST['adr_1'] ;
$adr_2 = $_REQUEST['adr_2'] ;
$adr_3 = $_REQUEST['adr_3'] ;
$city = $_REQUEST['city'] ;
$state = $_REQUEST['state'] ;
$postal_code = $_REQUEST['postal_code'] ;
$ymessage = $_REQUEST['ymessage'] ;

mail( "info@newtowtrucks.com", "$first_name",
"I would like to Rent a Port-A-Party

First Name: $first_name
Last Name: $last_name
Company: $company_name
Email: $email_address
Phone: $home_num
Fax: $fax_num
Address: $adr_1
City: $city
State: $state
Zip: $postal_code
Message: $ymessage

<a href="BuyMe.php">BuyMe.php</a>
");

?><form action="RentMe.php" method="post" ><font color="#FF0000">
<?php
if($ccContactOBJ->contact_lists && !$ccContactOBJ->show_contact_lists && $ccContactOBJ->force_lists){
foreach ($allLists as $k=>$item) {
echo '<input type="hidden" name="lists[]" value="'.$item['id'].'" id="chk_'.$k.'" />';
}
} else {
?>
<?php } ?>