-
Notifications
You must be signed in to change notification settings - Fork 0
/
php.php
89 lines (89 loc) · 2.1 KB
/
php.php
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
<html>
<head>
</head>
<body>
<?php
$surname = $_GET['surname'];
$name = $_GET['name'];
$family_name = $_GET['family_name'];
$parents_names = $_GET['parents_names'];
$dob = $_GET['dob'];
$sex = $_GET['sex'];
$pesel = $_GET['pesel'];
$nationality = $_GET['nationality'];
$id_num = $_GET['id_num'];
$pob = $_GET['pob'];
$ia = $_GET['ia'];
$issue = $_GET['issue'];
$expiry = $_GET['expiry'];
if ($surname === NULL or $surname === '')
{
echo "input ur surname";
}
elseif($name === NULL or $name === '')
{
echo "input ur name";
}
elseif($family_name === NULL or $family_name === '')
{
echo "input ur family_name";
}
elseif($parents_names === NULL or $parents_names === '')
{
echo "input ur parents_names";
}
elseif($dob === NULL or $dob === '')
{
echo "input ur dob";
}
elseif($sex === NULL or $sex === '')
{
echo "input ur sex";
}
elseif($pesel === NULL or $pesel === '' or strlen ($pesel) !== 11)
{
echo "input ur pesel";
}
elseif($nationality === NULL or $nationality === '')
{
echo "input ur nationality";
}
elseif($id_num === NULL or $id_num === '')
{
echo "input ur id_num";
}
elseif($pob === NULL or $pob === '')
{
echo "input ur pob";
}
elseif($ia === NULL or $ia === '')
{
echo "input ur ia";
}
elseif($issue === NULL or $issue === '')
{
echo "input ur issue";
}
elseif($expiry === NULL or $expiry === '')
{
echo "input ur expiry";
}
elseif(1===1)
{
echo "Surname: ",$surname ,"<br>";
echo "Name: ",$name ,"<br>";
echo "family_name: ",$family_name ,"<br>";
echo "parents_names: ",$parents_names ,"<br>";
echo "dob: ",$dob ,"<br>";
echo "sex: ",$sex ,"<br>";
echo "pesel: ",$pesel ,"<br>";
echo "nationality: ",$nationality ,"<br>";
echo "id_num: ",$id_num ,"<br>";
echo "pob: ",$pob ,"<br>";
echo "ia: ",$ia ,"<br>";
echo "issue: ",$issue ,"<br>";
echo "expiry: ",$expiry ,"<br>";
}
?>
</body>
</html>