eof; }else{ session_start(); require_once("inc/config.php"); // included files and post-get stuff... require_once($config["htmlRootDir"]."/lib/functions.php"); require_once($config["htmlRootDir"]."/lib/imageTool.php"); require_once($config["htmlRootDir"]."/lib/timeConversion.php"); require_once($config["htmlRootDir"]."/lib/objector.php"); require_once($config["htmlRootDir"]."/lib/aStore.php"); require_once($config["htmlRootDir"]."/lib/aForum.php"); require_once($config["htmlRootDir"]."/lib/printForum.php"); require_once($config["htmlRootDir"]."/lib/aCart.php"); require_once($config["htmlRootDir"]."/lib/aExam.php"); require_once($config["htmlRootDir"]."/lib/users.php"); require_once($config["htmlRootDir"]."/lib/aFaculty.php"); require_once($config["htmlRootDir"]."/lib/storePrintFunctions.php"); if( strtoupper($_SERVER["REQUEST_METHOD"]) =="GET"){ $get = new objector($_GET); define("ACTION", $get->action); $action = $get->action; $post = ""; }else{ $post = new objector($_POST); $get = ""; define("ACTION", $post->action); $action = $post->action; } } switch($action){ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // sendmail //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// case"sendmail": $errors =0; $msg = ""; if (($post->firstname=="")||($post->lastname=="")){ $errors++; $msg.="You must fill in a full name to continue.
"; } if ($post->emailAddress==""){ $errors++; $msg.="You must fill in an email address to continue.
"; } if ($post->emailAddress!=$post->confirmEmail){ $errors++; $msg.="The email addresses you entered did not match.
"; } if ($errors!=0){ include('inc/head.php'); print<< eof; print<<

Error

The following problems occurred while trying to process your request.

$msg

Please try again. Fill out the form entirely and click "Submit" to continue.

eof; $newaction="sendmail"; $row = $post; include("forms/contactForm.php"); print""; include("inc/foot.php"); exit; } $fromName =$config["emailFromname"]; $from = $config["emailFrom"];//"contacts@schoolofdentalassisting.com"; $toName=$post->fullname; $to =$post->emailAddress; $subject = "{$config[siteName]} Contact Form Submission"; $thankYouComments.=<<firstname $post->lastname, Thank you for your inquiry about our services. We will get back to you shortly. Please do not respond to this email, as it comes from an unmonitored account. If you'd like to respond, please use the email address contacts@schoolofdentalassisting.com. You may also call us at: 1 800-383-3408. Thank you, The {$config[siteName]} eof; sendEmail($to,$toName, $subject,$thankYouComments,$from,$fromName); $post->fullname="$post->firstname $post->lastname"; $to="contacts@schoolofdentalassisting.com"; $toName =$config["emailFromname"]; $from = $post->emailAddress; $fromName=$post->fullname; $subject = "{$config[siteName]} Contact Form Submission"; $contents=""; $contents.=<<fullname from the contact page on {$config[siteName]}. Name: {$post->firstname} {$post->lastname} Email: {$post->emailAddress} Phone: {$post->phone} Address: {$post->address1} {$post->address2} {$post->city} {$post->state} {$post->zip} Recieve Newsletter? {$post->optIn} Comments: {$post->comments} eof; // send the mail if (sendEmail($to,$toName, $subject,$contents,$from,$fromName)){ // save the info... if ($post->optIn=="y"){ require_once 'lib/csrest_subscribers.php'; $wrap = new CS_REST_Subscribers('2a47c2c46d954a7fec2652547d83fd16', '5f114e8fa4c1f88806ac1b5e588881a4'); $result = $wrap->add(array( 'EmailAddress' => $post->emailAddress, 'Name' => $post->firstname.' '.$post->lastname, 'Resubscribe' => true )); if($result->was_successful()) { } } header("Location: /contact_success.php"); }else{ print<<Error

There was an unknown error while processing your request. Please try again later.

Return to {$config["siteName"]}

eof; } break; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // default //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// default: print<<Contact Us

P.O Box 8534 | Breckenridge, CO 80424 | 800-383-3408 | fax: 720-294-8395

Allow the {$config["siteName"]} to help you get started in your new recession proof career as a Dental Assistant. Upon completion of the course, students will receive a Certificate of Completion in Dental Assisting.

Please use the form below to contact us for details about our 3 month course, and to find out how you can take the first step towards your promising new career today!

eof; $newaction="sendmail"; include("forms/contactForm.php"); break; } print<<We will not sell, share, or otherwise misuse any information you provide.

eof; include("inc/foot.php"); ?>