session_start(); require("php/require/config.php"); $title= sitename . " Registration"; require("$reqpath/login/config.php"); require("$reqpath/common.php"); require("$reqpath/login/membership.php"); include("$incpath/header.php"); $showlogin="no"; include("$incpath/menu.php"); //echo "
check request_method:", $_SERVER['REQUEST_METHOD'] , ":
"; if ($_SERVER['REQUEST_METHOD']!='POST') { echo "
I encourage you to get involved in your local community by attending meetings or volunteering. There are many ways to make our community better for everyone. Just pick one! "; // echo "
check empty first/last/email
"; if (empty($_POST['firstname']) || empty($_POST['lastname']) || empty($_POST['email']) || empty($_POST['address']) || empty($_POST['city']) || empty($_POST['state']) || empty($_POST['zipcode']) ) { echo "
check email format
"; if (bad_email_format($_POST['email'])) { echo "
sending the mail
"; $_POST['regip']=$_SERVER['REMOTE_ADDR']; //echo "
before insert "; echo "
Firstname: | ",$_POST['firstname']; echo " |
Lastname: | ",$_POST['lastname']; echo " |
Email: | ",$_POST['email']; echo " |
"; if ($_POST['optout'] == "Donate") { echo "
"; include("$incpath/donate.inc"); echo " |
"; } } //else } } include("$incpath/footer.php"); ?>