質問編集履歴
1
insert\.phpを追加しまして、1ページから2ページになりました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,7 +6,15 @@
|
|
6
6
|
|
7
7
|
よろしくお願いいたします。
|
8
8
|
|
9
|
+
------------------------------
|
9
10
|
|
11
|
+
調べたところ2ページ必要みたいで、少しコードを直します。
|
12
|
+
|
13
|
+
------------------------------
|
14
|
+
|
15
|
+
db.php
|
16
|
+
|
17
|
+
-----------------------------
|
10
18
|
|
11
19
|
```php
|
12
20
|
|
@@ -16,9 +24,9 @@
|
|
16
24
|
|
17
25
|
<body>
|
18
26
|
|
19
|
-
<form method="post" name="form"
|
27
|
+
<form method="post" name="form" action="insert.php">
|
20
28
|
|
21
|
-
<input tye
|
29
|
+
<input type="text" name="name"></input>
|
22
30
|
|
23
31
|
<button type="submit">書き込み</button>
|
24
32
|
|
@@ -28,7 +36,13 @@
|
|
28
36
|
|
29
37
|
</html>
|
30
38
|
|
39
|
+
```
|
31
40
|
|
41
|
+
insert.php
|
42
|
+
|
43
|
+
----------------------
|
44
|
+
|
45
|
+
```php
|
32
46
|
|
33
47
|
<?php
|
34
48
|
|
@@ -80,4 +94,6 @@
|
|
80
94
|
|
81
95
|
?>
|
82
96
|
|
97
|
+
|
98
|
+
|
83
99
|
```
|