this is not a valid organization name"); } else { error("your information for the organization field"); } } else if (is_blank($ContactName) || isSpam($ContactName)) { // Note that an error occurred, and this will prevent emails from going out. $error++; if (isSpam($ContactName)) { spamWarning("this is not a valid contact name"); } else { error("your information for the contact name field"); } } else if (is_blank($Address) || isSpam($Address)) { // Note that an error occurred, and this will prevent emails from going out. $error++; if (isSpam($Address)) { spamWarning("this is not a valid mailing address"); } else { error("your information for the mailing address field"); } } else if (is_blank($City) || isSpam($City)) { // Note that an error occurred, and this will prevent emails from going out. $error++; if (isSpam($City)) { spamWarning("this is not a valid city"); } else { error("your information for the city field"); } } else if (is_blank($State) || isSpam($State)) { // Note that an error occurred, and this will prevent emails from going out. $error++; if (isSpam($State)) { spamWarning("this is not a valid state"); } else { error("your information for the state field"); } } else if (is_blank($Zip) || isSpam($Zip)) { // Note that an error occurred, and this will prevent emails from going out. $error++; if (isSpam($Zip)) { spamWarning("this is not a valid zip code"); } else { error("your information for the zip code field"); } } else if (is_blank($Phone) || isSpam($Phone)) { // Note that an error occurred, and this will prevent emails from going out. $error++; if (isSpam($Phone)) { spamWarning("this is not a valid name"); } else { error("your information for the phone field"); } } else if (! eregi('^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.([a-zA-Z]{2,4})$', $Email) || is_blank($Email)) { $error++; print "

There was a problem

\n"; print "

Please double-check the email address that you provided. Are you sure it's correct? Return to the form and give it another try. Thank you.

\n"; } else if (isSpam($Web)) { // Note that an error occurred, and this will prevent emails from going out. $error++; spamWarning("this is not valid web address"); } if (! $error) { // send emails $query = "SELECT COUNT(ID) As count FROM " . $_SESSION['db_name'] . ".JOIN_OBCI WHERE Organization LIKE '$Organization' AND ContactName LIKE '$ContactName';"; $res = mysql_fetch_array(mysql_query($query)); $count = $res['count']; $date = date("Y-m-d"); if ($count == "0") { $query = "INSERT INTO " . $_SESSION['db_name'] . ".JOIN_OBCI VALUES('', '$date', '$Organization', '$ContactName', '$Address', '$City', '$State', '$Zip', '$Phone', '$Email', '$Web', '$Newsletter');"; $res = mysql_query($query); if ($Newsletter) { // First check to see if the email addresss is already in the db. If not, then insert it. $query = "SELECT COUNT(ID) As count FROM " . $_SESSION['db_name'] . ".MAILING_LIST WHERE Email LIKE '$Email';"; $res = mysql_fetch_array(mysql_query($query)); $count = $res['count']; if (! $count) { $query = "INSERT INTO " . $_SESSION['db_name'] . ".MAILING_LIST VALUES('', '$date', '$ContactName', '$Email', 'NOTE: This subscriber opted in via the \"Join OBCI\" online form. The organization opting in for membership is $Organization.', 'NOTE: This subscriber opted in via the \"Join OBCI\" online form.', '0');"; $res = mysql_query($query); } } } else { ?>

There was a problem

According to our records, you have already applied for membership in OBCI. If you attempted to revisit or refresh this page after filling out the form, then you may disregard this message and rest assured that we received your information. If you have any questions, feel free to contact us.

Return to our home page >>

Membership Registration from OBCI Web Site"; $message1 .= "Organization: $Organization
"; $message1 .= "Contact Name: $ContactName
"; $message1 .= "Address: $Address
"; $message1 .= "$City, $State $Zip
"; $message1 .= "Phone: $Phone
"; $message1 .= "Email: $Email
"; if (! is_blank($Web)) { $message1 .= "Web Address: $Web

"; } if ($Newsletter) { $message1 .= "
This applicant opted into the mailing list.

"; } $message1 .= "

-- END OF MESSAGE --

"; if (! is_blank($Email)) { $message2 .= "Dear $ContactName,\n\n"; $message2 .= "Thank you for applying for membership to OBCI! We will contact you and your organization shortly about the status of your membership.\n\n"; $message2 .= "Endorsing OBCI requires no financial or other commitment to any specific actions. It does require, however, a desire to deliver the full spectrum of bird conservation in Ohio through landscape-scale assessment and management, guided by sound science and using voluntary stewardship. You will be encouraged (but not required) to attend an annual meeting at which your organization and the full OBCI membership would have an opportunity to provide input and learn about progress towards OBCI activities, objectives, and future plans. \n\n"; $message2 .= "We look forward to working with you and your organization! Thanks again for your interest.\n"; $message2 .= "\n\n"; $message2 .= "Sincerely,\n"; $message2 .= "\n"; $message2 .= "Coordinator\n"; $message2 .= "Ohio Bird Conservation Initiative\n"; // Send the email sendEmail($Email, $OBCIEMAIL, "OBCI - Membership Application Received", $message2); } $From = $Email; sendEmailQuiet($OBCIEMAIL, $From, "OBCI MEMBERSHIP APPLICATION", $message1); } // end if for error checking } else { print "$Content"; } } ?> \n"; ?>

There was a problem

We're sorry, we did not receive . Please return to the form and provide this missing information. Thank you!

If you are having difficulties with our online form, you are welcome to contact us directly webmaster@obcinet.org.













There was a problem

We're sorry, . Our online form does not permit the inclusion of strange characters or hyperlinks in a response. Please return to the form. Try removing any links you may have included and use only plain alphanumeric characters for your answers. Thank you!

If you are having difficulties with our online form, you are welcome to contact us directly webmaster@obcinet.org.













\r\n"; $headers.= "To: ".$To." <".$To.">\r\n"; $headers.= "Reply-To: ".$From." <".$From.">\r\n"; // Get rid of slashes in the message $Message = stripslashes($Message); if (mail($To, $subject, $message, $headers)) { ?>

Thank You!

Your request for membership has been sent to the OBCI Coordinator. Thank you for your interest!

Return to our home page >>











We're sorry!

Unfortunately, your registration notification was not successfully sent. We apologize for the inconvenience, and encourage you to contact us directly by email. Thank you for your interest in OBCI!

Return to our home page >>











\r\n"; $headers.= "To: ".$To." <".$To.">\r\n"; $headers.= "Reply-To: ".$From." <".$From.">\r\n"; // Get rid of slashes in the message $Message = stripslashes($Message); mail($To, $subject, $message, $headers); } ?>