// Script Name: PHP Contact Mailer
// Set page variables.
$title = "Registration for Juniors Grass Volleyball Tournament";
$tourneydate = "August 10th 2013";
$sub = "VBmatch Registration";
$back = "";
$bg = 'FFFFFF';
$text = '000000';
$link = '000000';
$vlink = '000000';
$trans = 'spinoutin';
$btntag = 'text=000000 insetselection';
$txtbxtag = 'bgcolor=FFFFFF text=000000 cursor=ff autoactivate nohighlight';
// Remove < and > from the email message.
$msg = str_replace("<","",$msg);
$msg = str_replace(">","",$msg);
// Set email variables.
$your_email = 'info@vbmatch.com';
$your_name = 'Ernest';
$your_link = 'http://www.vbmatch.com';
$confirm_sub = 'Your Registration Information Was Received';
$confirm_msg = "
Hi $name,
Thank you for submitting an entry for the upcoming VBmatch volleyball event ($entrytype).
To complete your pre-registration, please be sure that you have paid the required deposit. If you do not wish to pay online, please contact us to make other payment arrangements (e.g. payment by check).
IMPORTANT NOTE: Spots are limited for each event. Therefore, you are NOT officially registered until you receive a confirmation email from us, which will be sent after we receive your payment and verify that there are still available spots in the event. If you have further questions, please contact the event director at: info@vbmatch.com
Thanks again,
$your_name
$your_link
";
$contact_msg = "
$title
Entry Type: $entrytype
Player 1 Name: $tname
Player 1 Info: $p1name $p1cell $p1email
Parent of Player 1: $name $cell $email Home Phone: $phone
Player 2 Name: $p2name
Player 2 Info: $p2cell $p2email $p3name
Parent of Player 2: $p3email $p3cell
Home Phone and Cell Phone : $p4name $p4cell $p4email
Teammate#6: $p5name $p5cell $p5email
Note: $msg
";
// Begin the sendmail routine.
if ($send) {
if (!$name || !$email || substr_count($email, '@') < 1 ||
substr_count($email, '.') < 1 || !$sub) {
print <<
Error!
Error!
Please go back and correct the errors listed below:
EOF;
if (!$name) {
print "- Your name is missing.
"; }
if (!$email || substr_count($email, '@') < 1 || substr_count($email, '.') < 1) {
print " - Your email is missing or invalid.
"; }
print <<
|
Back
| |