"; if (!strlen($address)) $error .= "Address is required.
"; if (strlen($address)<10) $error .= "Your address seems to short
"; if (!strlen($phone)) $error .= "Phone is required.
"; if (strlen(ereg_replace( '[^0-9]+','',$phone))<7) $error .= "Your phone number seems to short.
"; if (!strlen($email)) $error .= "Email is required.
"; if (!strlen($parkname)) $error .= "A suggestion for the park name is required.
"; if (!strlen($type)) $error .= "Please fill out if you are a skater, biker, supporter, etc.
"; if ($name==$email) $error .= "Your name should not be the same as your email address.
"; if ($phone==$email) $error .= "Your phone number should not be the same as your email address.
"; if ($address==$email) $error .= "Your address should not be the same as your email address.
"; if(strstr($address,"http://")) $error .= "Please don't try to send us a website link
"; if(strstr($parkname,"http://")) $error .= "Please don't try to send us a website link
"; if(strstr($email,"http://")) $error .= "Please don't try to send us a website link
"; } // If the form was submitted properly, send the emails if (!strlen($error) && strlen($name) && strlen($email)) { $body = "Someone has submitted the following name:

"; $body .= "Name: $name
"; $body .= "Address:
".nl2br($address)."

"; $body .= "Phone: $phone
"; $body .= "Email: $email
"; $body .= "Suggested Park Name:
".nl2br($parkname)."
"; $body .= "Type:
".nl2br($type)."
"; $mail = new PHPMailer(); $mail->From = "info@dunelandx.org"; $mail->FromName = "DunelandX Organization"; $mail->Host = "mail.dunelandx.org"; $mail->Mailer = "sendmail"; $mail->Subject = "DunelandX Park Name Submission"; $mail->Body = $body; $mail->AltBody = strip_tags($body); $mail->AddAddress("info@dunelandx.org", "DunelandX Organization"); $mail->Send(); $mail->ClearAddresses(); $mail->ClearAttachments(); $mail->ClearCustomHeaders(); $body = "Thank you for suggesting a name for the Duneland Xtreme sports park. " . "Please check our website for the latest updates:" . "
http://www.dunelandx.org




"; $mail = new PHPMailer(); $mail->From = "info@dunelandx.org"; $mail->FromName = "DunelandX Organization"; $mail->Host = "mail.dunelandx.org"; $mail->Mailer = "sendmail"; $mail->Subject = "Thank you for your DunelandX name suggestion"; $mail->Body = $body; $mail->AltBody = strip_tags($body); $mail->AddAddress($email, $name); $mail->Send(); $mail->ClearAddresses(); $mail->ClearAttachments(); $mail->ClearCustomHeaders(); header("Location: name_thankyou.htm"); exit; } // If the form was NOT submitted properly, spit out the errors if (strlen($error)) $error = "
$error

"; ?> Webdesign by Andriana Baruffi, Monstrous Fish Webdesign. Duneland Xtreme Sports Park: Name It

David Potter and skate park name winner Paul Tharp stand
before the construction sign with SKATE STREET LOGO'D BOARD.