-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhomework9.php
68 lines (49 loc) · 1.08 KB
/
homework9.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
<?php
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style>
div >label{
text-align:left;
display:block;
}
</style>
</head>
<body>
<div>
<!-- change the method to get and uncomment the part from homework9_1.php -->
<form action="homework9_1.php" method="post">
<div>
<label for="firstname">First name</label>
<input type="text" id="firstname" name="firstname" />
</div>
<div>
<label for="lastname">Last name</label>
<input type="text" id="lastname" name="lastname" />
</div>
<div>
<label for="date">Born date: </label>
<input type="date" id="date" name="date" />
</div>
<div>
<label for="childs">How many childs do you have</label>
<input type="number" id="child" name="child" />
</div>
<div>
<label for="color">Color of your head</label>
<input type="text" id="color" name="color" />
</div>
<div>
<input type="submit" />
</div>
</form>
<div>
Array :
<?php var_dump($_POST) ?>
</div>
</div>
</body>
</html>