Commit | Line | Data |
---|---|---|
4f46b65a | 1 | <?PHP |
05263552 PM |
2 | if (isset($_COOKIE['form_version'])){ |
3 | if ($_COOKIE['form_version'] == '2'){ | |
4 | header('Location: enter_information_v2.php'); | |
5 | } | |
6 | if ($_COOKIE['form_version'] == '3'){ | |
7 | header('Location: enter_information_v2.php'); | |
8 | } | |
9 | } | |
97cefac7 PM |
10 | if (empty($_COOKIE['signature_status'])){ |
11 | setcookie("signature_status", 'unverified'); | |
12 | } | |
eb2d265f | 13 | if (isset($_POST['web_first_name'])){ |
7d59e09c PM |
14 | $email=''; |
15 | if (isset($_POST['email'])){ | |
16 | if ($_POST['email'] != ''){ | |
17 | $email = $_POST['email']; | |
18 | setcookie("email", $email); | |
19 | } | |
20 | } | |
21 | $DOB=''; | |
50b6caaf | 22 | if (isset($_POST['DOB'])){ |
c1578d40 PM |
23 | if ($_POST['DOB'] != ''){ |
24 | $DOB = $_POST['DOB']; | |
25 | setcookie("pDOB", $DOB); | |
26 | } | |
27 | } | |
3ce0d58f PM |
28 | $web_first_name=''; |
29 | if (isset($_POST['web_first_name'])){ | |
7a47bfbd | 30 | if ($_POST['web_first_name'] != ''){ |
3ce0d58f | 31 | $web_first_name = $_POST['web_first_name']; |
c114242d | 32 | setcookie("web_first_name", $web_first_name); |
7a47bfbd | 33 | } |
3ce0d58f PM |
34 | } |
35 | $web_last_name=''; | |
36 | if (isset($_POST['web_last_name'])){ | |
7a47bfbd | 37 | if ($_POST['web_last_name'] != ''){ |
3ce0d58f | 38 | $web_last_name = $_POST['web_last_name']; |
c114242d | 39 | setcookie("web_last_name", $web_last_name); |
7a47bfbd | 40 | } |
3ce0d58f | 41 | } |
58c8af47 PM |
42 | if(isset($_POST['web_last_name']) && isset($_POST['web_first_name'])){ |
43 | setcookie("web_name", $web_first_name.' '.$web_last_name); | |
44 | } | |
3ce0d58f PM |
45 | $web_house_number=''; |
46 | if (isset($_POST['web_house_number'])){ | |
7a47bfbd | 47 | if ($_POST['web_house_number'] != ''){ |
50b6caaf | 48 | $web_house_number = $_POST['web_house_number']; |
c114242d | 49 | setcookie("web_house_number", $web_house_number); |
7a47bfbd | 50 | } |
3ce0d58f PM |
51 | } |
52 | $web_zip_code=''; | |
53 | if (isset($_POST['web_zip_code'])){ | |
7a47bfbd | 54 | if ($_POST['web_zip_code'] != ''){ |
50b6caaf | 55 | $web_zip_code = $_POST['web_zip_code']; |
c114242d | 56 | setcookie("web_zip_code", $web_zip_code); |
7a47bfbd | 57 | } |
3ce0d58f | 58 | } |
943b1dae PM |
59 | $contact_phone=''; |
60 | if (isset($_POST['contact_phone'])){ | |
61 | if ($_POST['contact_phone'] != ''){ | |
62 | $contact_phone = $_POST['contact_phone']; | |
60e76c2f | 63 | setcookie("pPHONE", $contact_phone); |
943b1dae PM |
64 | } |
65 | } | |
eb2d265f | 66 | header('Location: is_the_information_correct.php'); |
3ce0d58f | 67 | } |
aa92c8ea | 68 | include_once('header.php'); |
1c16fad8 | 69 | slack_general('Enter Information ('.$_COOKIE['invite'].')','md-petition'); |
8438eadf PM |
70 | ?> |
71 | <link id="bsdp-css" href="files/bootstrap-datepicker3.min.css" rel="stylesheet"> | |
72 | <script src="files/bootstrap-datepicker.min.js"></script> | |
10f68ed7 | 73 | <?PHP |
87824afc PM |
74 | $qX = "select * from website_text where id = '2'"; |
75 | $rX = $petition->query($qX); | |
76 | $dX = mysqli_fetch_array($rX); | |
4f46b65a | 77 | ?> |
36a3bd9e | 78 | <script>document.title = "MEPS - Enter Information";</script> |
4f46b65a | 79 | <form method='POST'> |
72eb3929 | 80 | |
13269a9f | 81 | <div class='row'> |
7d59e09c | 82 | <div class='col-sm-10' style='text-align:center;'><h1><?PHP echo $dX['text_title'];?></h1><h2 style="margin:10px; padding:10px; background-color:lightyellow;"><?PHP echo $dX['text_block'];?></h2></div> |
c1578d40 | 83 | </div> |
a4b12b0c | 84 | |
7d59e09c PM |
85 | |
86 | <div class='row'> | |
32713b7f | 87 | <div class='col-sm-3' style='text-align:right;'><h2>E-Mail for Follow Up*</h2></div> |
008e034f | 88 | <div class='col-sm-6' style='text-align:left;'><input class="form-control input-lg" name='email' oninvalid="this.setCustomValidity('Please enter an email address for follow up')" oninput="this.setCustomValidity('')" ></div> |
7d59e09c PM |
89 | <div class='col-sm-1' style='text-align:center;'><button type="submit" class="btn btn-success btn-lg btn-block">↴</button></div> |
90 | </div> | |
43364c37 | 91 | |
c1578d40 | 92 | <div class='row'> |
439d49cd | 93 | <div class='col-sm-3' style='text-align:right;'><h2>First Name</h2></div> |
008e034f | 94 | <div class='col-sm-6' style='text-align:left;'><input class="form-control input-lg" name='web_first_name' required oninvalid="this.setCustomValidity('Please enter only your first name')" oninput="this.setCustomValidity('')" ></div> |
d2e9d56d | 95 | <div class='col-sm-1' style='text-align:center;'><button type="submit" class="btn btn-success btn-lg btn-block">↴</button></div> |
aa47a038 | 96 | </div> |
13269a9f | 97 | |
c1578d40 | 98 | <div class='row'> |
439d49cd | 99 | <div class='col-sm-3' style='text-align:right;'><h2>Last Name</h2></div> |
008e034f | 100 | <div class='col-sm-6' style='text-align:left;'><input class="form-control input-lg" name='web_last_name' required oninvalid="this.setCustomValidity('Please enter only your last name')" oninput="this.setCustomValidity('')"></div> |
d2e9d56d | 101 | <div class='col-sm-1' style='text-align:center;'><button type="submit" class="btn btn-success btn-lg btn-block">↴</button></div> |
13269a9f | 102 | </div> |
50b6caaf | 103 | |
aa47a038 | 104 | <div class='row'> |
439d49cd | 105 | <div class='col-sm-3' style='text-align:right;'><h2>Date of Birth</h2></div> |
36dd32c1 PM |
106 | <div class='col-sm-6'> |
107 | <div class="input-group date"> | |
108 | <span class="input-group-addon"><i class="glyphicon glyphicon-th"></i></span><input name='DOB' type="text" class="form-control input-lg" required oninvalid="this.setCustomValidity('Please enter your date of birth in the format month month slash day day slash year year year year')" oninput="this.setCustomValidity('')"> | |
109 | </div> | |
110 | <script> | |
111 | var $d = jQuery.noConflict(); | |
112 | $d('.input-group.date').datepicker({ | |
113 | format: "mm/dd/yyyy", | |
114 | clearBtn: true | |
115 | }); | |
116 | </script> | |
117 | </div> | |
d2e9d56d | 118 | <div class='col-sm-1' style='text-align:center;'><button type="submit" class="btn btn-success btn-lg btn-block">↴</button></div> |
43364c37 | 119 | </div> |
62c99d79 | 120 | <div class='row'> |
32713b7f | 121 | <div class='col-sm-3' style='text-align:right;'><h2>Phone Number**</h2></div> |
008e034f | 122 | <div class='col-sm-6' style='text-align:left;'><input class="form-control input-lg" id="contact_phone" name="contact_phone" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}" required oninvalid="this.setCustomValidity('please enter your phone number with area code with hyphens like 1 2 3 dash 4 5 6 dash 7 8 9 0')" oninput="this.setCustomValidity('')"></div> |
d2e9d56d | 123 | <div class='col-sm-1' style='text-align:center;'><button type="submit" class="btn btn-success btn-lg btn-block">↴</div> |
13269a9f | 124 | </div> |
f32af605 | 125 | <div class='row'> |
43364c37 PM |
126 | <div class='col-sm-3' style='text-align:right; background-color:lightyellow;'><h3>Phone Format</h3></div> |
127 | <div class='col-sm-6' style='text-align:left; background-color:lightyellow;'><h3>443-123-4567</h3></div> | |
407ced6d | 128 | <div class='col-sm-1' style='text-align:center;'></div> |
62c99d79 | 129 | </div> |
c1578d40 | 130 | <div class='row'> |
407ced6d | 131 | <div class='col-sm-3' style='text-align:right;'><h2>Building Number</h2></div> |
008e034f | 132 | <div class='col-sm-6' style='text-align:left;'><input class="form-control input-lg" name='web_house_number' type='number' required oninvalid="this.setCustomValidity('Please enter your house number without street name')" oninput="this.setCustomValidity('')"> </div> |
d2e9d56d | 133 | <div class='col-sm-1' style='text-align:center;'><button type="submit" class="btn btn-success btn-lg btn-block">↴</button></div> |
43364c37 | 134 | </div> |
f32af605 | 135 | <div class='row'> |
407ced6d PM |
136 | <div class='col-sm-3' style='text-align:right; background-color:lightyellow;'><h3>House: 321 Here St.</h3></div> |
137 | <div class='col-sm-6' style='text-align:left; background-color:lightyellow;'><h3>Use: 321</h3></div> | |
138 | <div class='col-sm-1' style='text-align:center;'></div> | |
139 | </div> | |
140 | <div class='row'> | |
141 | <div class='col-sm-3' style='text-align:right; background-color:lightyellow;'><h3>Apartment: 21 Here St. Apt 1323</h3></div> | |
142 | <div class='col-sm-6' style='text-align:left; background-color:lightyellow;'><h3>Use: 21</h3></div> | |
143 | <div class='col-sm-1' style='text-align:center;'></div> | |
144 | </div> | |
5ca4bf82 | 145 | <div class='row'> |
439d49cd | 146 | <div class='col-sm-3' style='text-align:right;'><h2>ZIP Code</h2></div> |
008e034f | 147 | <div class='col-sm-6' style='text-align:left;'><input class="form-control input-lg" name='web_zip_code' type='number' required oninvalid="this.setCustomValidity('Please enter your five digit zip code')" oninput="this.setCustomValidity('')"> </div> |
d2e9d56d | 148 | <div class='col-sm-1' style='text-align:center;'><button type="submit" class="btn btn-success btn-lg btn-block">↴</button></div> |
c1578d40 | 149 | </div> |
f32af605 | 150 | <div class='row'> |
43364c37 PM |
151 | <div class='col-sm-3' style='text-align:right; background-color:lightyellow;'><h3>ZIP Code Format</h3></div> |
152 | <div class='col-sm-6' style='text-align:left; background-color:lightyellow;'><h3>55555</h3></div> | |
407ced6d | 153 | <div class='col-sm-1' style='text-align:center;'></div> |
62c99d79 | 154 | </div> |
43364c37 | 155 | <div class='row'> |
655993ca | 156 | <div class='col-sm-10' style='text-align:center;'><button type="submit" class="btn btn-success btn-lg btn-block"><img alt='Click Here to Continue' class='click_me' src="files/click_here.gif">Next</button></div> |
72eb3929 | 157 | </div> |
43364c37 PM |
158 | <div class='row'> |
159 | <div class='col-sm-10' style='text-align:center;'><button type="reset" class="btn btn-warning btn-lg btn-block not_me">Clear</button></div> | |
160 | </div> | |
32713b7f | 161 | <div class='row'> |
da7d5075 | 162 | <div class='col-sm-10' style='text-align:center;'>* E-Mail is not required, and will only be used with the petitioners to reach you. It will never be sold.</div> |
32713b7f PM |
163 | </div> |
164 | <div class='row'> | |
5a77c084 | 165 | <div class='col-sm-10' style='text-align:center;'>** PHONE NUMBER IS REQUIRED BY STATE OF MARYLAND. WE WILL NEVER USE YOUR PHONE NUMBER - NEVER CALL - NEVER FOR TEXT MESSAGES.</div> |
32713b7f | 166 | </div> |
4f46b65a | 167 | </form> |
13269a9f | 168 | |
09a581dc | 169 | <?PHP include_once('footer.php'); |