X-Git-Url: http://git.hcoop.net/clinton/MarylandElectronicPetitionSignature.git/blobdiff_plain/8eca1b2c136d482de18197706ac6bac89806c872..7d2bb73a02f130eff864b819b8e3a5a23b276c4a:/enter_information_v2.php?ds=sidebyside diff --git a/enter_information_v2.php b/enter_information_v2.php index 244d11d..9e4c9ae 100644 --- a/enter_information_v2.php +++ b/enter_information_v2.php @@ -11,12 +11,23 @@ if (isset($_POST['web_first_name'])){ } } $DOB=''; - if (isset($_POST['DOB'])){ + // old DOB form + if (isset($_POST['DOB'])){ if ($_POST['DOB'] != ''){ $DOB = $_POST['DOB']; setcookie("pDOB", $DOB); } } + // new DOB form + if (isset($_POST['web_dob_day'])){ + if ($_POST['web_dob_day'] != ''){ + $DOB = $_POST['web_dob_year'].'-'.$_POST['web_dob_month'].'-'.$_POST['web_dob_day']; + setcookie("pDOB", $DOB); + setcookie("web_dob_month", $_POST['web_dob_month']); + setcookie("web_dob_year", $_POST['web_dob_year']); + setcookie("web_dob_day", $_POST['web_dob_day']); + } + } $web_first_name=''; if (isset($_POST['web_first_name'])){ if ($_POST['web_first_name'] != ''){ @@ -97,7 +108,9 @@ slack_general('Enter Information ('.$_COOKIE['invite'].')','md-petition');

Date of Birth

-
+
+
+