addError("Leave the 1st e-mail field blank. Only use the 2nd one."); } // **** Convert all posted items to variables. Be sure you have ALL the fields in your form listed here. $name = stripslashes($_POST['name']); $email = stripslashes($_POST['ailmay']); // Note this is called 'mail' in piglatin to trick spammmers $phone = stripslashes($_POST['phone']); $address = stripslashes($_POST['address']); $city = stripslashes($_POST['city']); $state = stripslashes($_POST['state']); $zip = stripslashes($_POST['zip']); $comments = stripslashes($_POST['comments']); // **** Enter the things you want validated / required $validator->validateRequired($name, "Name is required"); $validator->validateRequired($phone, "Phone Number is required"); $validator->validateRequired($email, "Email address is required"); if ($email) { $validator->validateEmail($email, "Email address must be a valid email address"); } $validator->validateRequired($comments, "Comments is required"); // if the there are errors, list the errors if ($validator->foundErrors()) { // validation errors found $alert = $validator->listErrors('
'); } else { // compose email require("includes/forms/class.phpmailer.php"); // **** Create e-mail. Be sure all your fields are in here. If you keep them items on the right lined up they will look nice in the email. $body = "Name: " . $name . "\n"; $body .= "Email Address: " . $email . "\n"; $body .= "Phone Number: " . $phone . "\n"; $body .= "Address: " . $address . "\n"; $body .= "City: " . $city . "\n"; $body .= "State: " . $state . "\n"; $body .= "Zip: " . $zip . "\n"; $body .= "Comments: " . $comments . "\n"; // **** Enter a few more variables. $subject = 'Contact Form Submission'; $to = 'raewald@voegeli-ewald.com'; // You can enter more than one with commas like this: 'joe@me.com, jane@me.com' $success = 'Your form has been submitted successfully!'; // sending the email $mail = new PHPMailer(); $mail->From = $email; $mail->FromName = $name; $mail->Mailer = "mail"; $mail->AddAddress($to); $mail->Subject = $subject; $mail->Body = $body; $mail->Send(); // success $alertyes = $success; } }// end submit ?> Monroe Professional Center | Contact Us!

HomeAll Units Parking Facilities MPC Governance & Administration Contact Us Site Map

 

CONTACT US

You may contact us at , or simply provide your information in the following form.

General Info:
Additional Information:

(*) - Required Field