Repository navigation
Expand file tree
/
Copy pathoutput.php
More file actions
103 lines (67 loc) · 2.34 KB
/
Copy pathoutput.php
File metadata and controls
103 lines (67 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php
//Form starts
if(!empty($_POST['first_name'])){
$first_name = $_POST['first_name'];
echo "Hello $first_name" . "!<br>";
}
else{
echo "You forgot to to enter your first name. Fix it.<br>";
}
if(!empty($_POST['last_name'])){
$last_name = $_POST['last_name'];
}
else{
echo "You forgot to to enter your last name. Fix it.<br>";
}
//radio buttons
if(!empty($_POST['gender'])){
$gender = $_POST['gender'];
switch ($gender){
case $gender =="M":
echo "Hello Sir!<br>";
break;
case $gender == "F":
echo "Hello Madam!<br>";
break;
case $gender == "O":
echo "Hello Friend!<br>";
break;
}
}
else{
echo "You forgot to to enter your gender. Fix it.<br>";
}
//checkboxes
if(!empty($_POST['id'])){
$id = $_POST['id'];
}
else{
echo "You forgot to upload your government issued id. We STRONGLY advice you do so<br>";
}
if(!empty($_POST['birth_certificate'])){
$birth_certificate = $_POST['birth_certificate'];
}
else{
echo "You forgot to to enter your birth certificate. We STRONGLY advice you do so.<br>";
}
if(!empty($_POST['selfie'])){
$selfie = $_POST['selfie'];
}
else{
echo "You don't want us to take a picture of you every 2 minutes? Yes you do please select yes.<br>";
}
if(!empty($_POST['phone_audio'])){
$phone_audio = $_POST['phone_audio'];
}
else{
echo "Please let use record your phone audio.<br>";
}
//The check boxes arent necessary so they are not included
if (!empty($_POST['first_name'])&& !empty($_POST['last_name'])&&!empty($_POST['gender'])){
echo "Thank you for filling out the form! Your data is safe with us.";
}
else{
echo "You didnt fill out the form correctly. Go back and do it right<br>";
echo "<a href=\"index.php\">Go back</a>";
}
?>