Register




Register for

Date and Time:

Location:

Description:









‘;
$message .= ‘

Thank you for registering for ‘ . strip_tags($event[‘name’]) . ‘ on ‘ . formatDate(strip_tags($event[‘date’]), strip_tags($event[‘length_hours’]), strip_tags($event[‘length_minutes’])) . ‘.

‘;
$message .= ‘

If you have any questions please call one of our offices:
Grand Rapids: (616) 458-6480
Okemos: (517) 381-2086.

‘;
$message .= ‘

We look forward to seeing you there.

‘;
$message .= ‘

Cornerstone Wealth Partners

‘;
$message .= ‘

‘ . $site . ‘

‘;
$message .= ‘‘;

// MAKE SURE THE “FROM” EMAIL ADDRESS DOESN’T HAVE ANY NASTY STUFF IN IT

$pattern = “/^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,3})$/i”;
if (preg_match($pattern, trim(strip_tags($email)))) {
$cleanedEmail = trim(strip_tags($email));
} else {
return “The email address you entered was invalid. Please try again!”;
}

$to = $cleanedEmail;

$subject = ‘Registration Confirmation’;

$headers = “From: steve@cornerstonewealthpartners.comrn”;
$headers .= “Reply-To: steve@cornerstonewealthpartners.comrn”;
$headers .= “MIME-Version: 1.0rn”;
$headers .= “Content-Type: text/html; charset=ISO-8859-1rn”;

if (mail($to, $subject, $message, $headers)) {
echo ‘

Thank you for Registering

You will recieve an email confirmation sent to ‘. $email . ‘. If you have any questions please call one of our offices:

Grand Rapids: (616) 458-6480
Okemos: (517) 381-2086

‘;
} else {
echo ‘There was a problem registering please try agian later.’;
}

$message = ‘‘;
$message .= ‘

‘ . strip_tags($name) . ‘ has registered for ‘ . strip_tags($event[‘name’]) . ‘ on ‘ . formatDate(strip_tags($event[‘date’]), strip_tags($event[‘length_hours’]), strip_tags($event[‘length_minutes’])) . ‘.

‘;
$message .= ‘

To see a full list of RSVPs for this event click here

‘;

$to = ‘caleb@cashflowcoach.com’;

$subject = ‘New RSVP’;

$headers = “From: events@cornerstonewealthpartners.comrn”;
$headers .= “Reply-To: steve@cornerstonewealthpartners.comrn”;
$headers .= “MIME-Version: 1.0rn”;
$headers .= “Content-Type: text/html; charset=ISO-8859-1rn”;

mail($to, $subject, $message, $headers);

} }
?>

Leave a Reply