if ($_REQUEST[Submit]) {
//Check for missing fields.
include('./includes/signup/validate_form.php');
//If errors exist, display them.
if($errors > 0) {
echo("
include_once("./includes/footer.php");
?>
The following errors were produced: \n"); echo($error); echo("Please review the errors below, and make corrections as applicable, then resubmit the signup form. \n"); //Include the signup form again for corrections include('./includes/signup/signup_form.php'); } else { //Create Data and Time $date = time(); $date_time_array = getdate($date); $hours = $date_time_array["hours"]; $minutes = $date_time_array["minutes"]; $seconds = $date_time_array["seconds"]; $month = $date_time_array["mon"]; $day = $date_time_array["mday"]; $year = $date_time_array["year"]; //Figure out Subscription Length and Billing Amount $Amount = "24.95"; $NextBillDate = mktime($hours, $minutes, $seconds ,$month, $day, $year + 1); $Year = 1; //Payment Method = Credit Card if($_REQUEST['PaymentMethod'] == "Credit Card") { include_once('./includes/signup/cc.php'); } //Payment Method = Check if($_REQUEST['PaymentMethod'] == "Check") { include_once('./includes/signup/check.php'); } //Payment Method = PayPal if ($_REQUEST['PaymentMethod'] == "PayPal") { include_once("./includes/signup/paypal.php"); } } } else { include('./includes/signup/signup_form.php'); } ?> |