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!”;
}

// CHANGE THE BELOW VARIABLES TO YOUR NEEDS

$to = $cleanedEmail;

$subject = ‘Registration Confirmation’;

$headers = “From: [email protected]n”;
$headers .= “Reply-To: [email protected]”;
$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 = ‘[email protected]’;

$subject = ‘New RSVP’;

$headers = “From: [email protected]”;
$headers .= “Reply-To: [email protected]”;
$headers .= “MIME-Version: 1.0rn”;
$headers .= “Content-Type: text/html; charset=ISO-8859-1rn”;

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

} // End of insert and email IF statement
}
?>

Leave a Reply