-
Notifications
You must be signed in to change notification settings - Fork 0
/
1.7.php
62 lines (56 loc) · 1.06 KB
/
1.7.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
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<FORM action="1.7.php" method="GET">
<input type="number" name="number" min="1" max="12" required>
<input type="submit" value="Wyślij">
</FORM>
<?php
$number = $_GET["number"];
switch ($number) {
case 1:
echo "Styczeń - 31 dni";
break;
case 2:
echo "Luty - 28 dni";
break;
case 3:
echo "Marzec - 31 dni";
break;
case 4:
echo "Kwiecień - 30 dni";
break;
case 5:
echo "Maj - 31 dni";
break;
case 6:
echo "Czerwiec - 30 dni";
break;
case 7:
echo "Lipiec - 31 dni";
break;
case 8:
echo "Sierpień - 31 dni";
break;
case 9:
echo "Wrzesień - 30 dni";
break;
case 10:
echo "Październik - 31 dni";
break;
case 11:
echo "Listopad - 30 dni";
break;
case 12:
echo "Grudzień - 31 dni";
break;
default:
if($number != null){
echo "BŁĄD";
}
}
?>
</body>
</html>