\r\n"; $headers .= "Reply-To: \"".$_POST['name']."\" <".$_POST['email'].">\r\n"; $headers .= "Content-type: text/plain; charset=windows-1251\r\n"; $mailcat = ($_POST['mailcat'] == 1) ? 'Yes' : 'No'; $emailcat = ($_POST['emailcat'] == 1) ? 'Yes' : 'No'; $callcat = ($_POST['callcat'] == 1) ? 'Yes' : 'No'; $message = 'Name: '.$_POST['name']."\nOrganization: ".$_POST['org']."\nAddress: ".$_POST['address']."\nCity: ".$_POST['city']."\nState: ".$_POST['state']."\nZip: ".$_POST['zip']."\nEmail: ".$_POST['email']."\nHome phone: ".$_POST['hphone']."\nWork phone: ".$_POST['wphone']."\nCell phone: ".$_POST['cphone']."\nFax: ".$_POST['fax']."\nHow did he/her hear about us: ".$_POST['hear']."\nWhat item(s) is he/she interested in: ".$_POST['item']."\nDate: ".$_POST['date']."\nTime: ".$_POST['time']."\nType of event: ".$_POST['type']."\nComments: ".$_POST['comments']."\nMail a catalog: ".$mailcat."\nE-mail catalog: ".$emailcat."\nCall to set up an appointment: ".$callcat; mail("info@partyperfectrentals.com", 'PPR request form', $message, $headers); $headers = "MIME-Version: 1.0\r\n"; $headers .= "From: PPR TEAM \r\n"; $headers .= "Reply-To: PPR TEAM \r\n"; $headers .= "Content-type: text/plain; charset=windows-1251\r\n"; $message = "Dear ".$_POST['name'].",\nThank You for contacting Party Perfect Rentals.\nA representative will get back to you shortly.\n\nRegards,\nPPR TEAM"; mail($_POST['email'], 'Thank you for request', $message, $headers); $success = 'Thank you, a representative will contact you shortly'; } } $previous_Sending = md5($_POST['name'].$_POST['org'].$_POST['address'].$_POST['city'].$_POST['state'].$_POST['zip'].$_POST['email'].$_POST['hphone'].$_POST['wphone'].$_POST['cphone'].$_POST['fax'].$_POST['hear'].$_POST['item'].$_POST['date'].$_POST['time'].$_POST['type'].$_POST['comments'].$_POST['mailcat'].$_POST['emailcat'].$_POST['callcat']); $_SESSION['previous'] = $previous_Sending; } ?>

'.$success.'
'; else { ?>
Name '.$error[0].'
'; ?>
Organization '.$error[1].'
'; ?>
Address '.$error[2].'
'; ?>
City '.$error[3].'
'; ?>
State '.$error[4].'
'; ?>
Zip '.$error[5].'
'; ?>
Email Address '.$error[6].'
'; ?>
Home Phone '.$error[7].'
'; ?>
Work Phone '.$error[8].'
'; ?>
Cell Phone '.$error[9].'
'; ?>
Fax '.$error[10].'
'; ?>
How did you hear about us? '.$error[11].'
'; ?>
What item(s) are you interested in? '.$error[12].'
'; ?>
What is the date of your affair? '.$error[13].'
'; ?>
What is the time of your affair? '.$error[14].'
'; ?>
Type of Event '.$error[15].'
'; ?>
> Public > Private
Comments '.$error[16].'
'; ?>
Comments
>Please mail a catalog
>Please e-mail a catalog
>Please call to set up an appointment