質問編集履歴

4

2019/01/13 14:04

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -3,6 +3,44 @@
3
3
 
4
4
 
5
5
  ### 該当のソースコード
6
+
7
+ ```html
8
+
9
+ <html>
10
+
11
+ <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
12
+
13
+ <title>input.html</title></head>
14
+
15
+ <body>
16
+
17
+
18
+
19
+ <form action="output.php" method="post">
20
+
21
+ <table border="1">
22
+
23
+ <tr>
24
+
25
+ <td><input type="text" name="message1"></td>
26
+
27
+ <td><input type="text" name="message2"></td>
28
+
29
+ <input type="submit" value="入力">
30
+
31
+ </tr>
32
+
33
+ </table>
34
+
35
+ </form>
36
+
37
+ </body>
38
+
39
+ </html>
40
+
41
+ ```
42
+
43
+
6
44
 
7
45
 
8
46
 

3

2019/01/13 14:04

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- htmlのフォームから取得した文字をjsonファイルに代入したいんですがカッコをしたいです。どうすれば良いでしょうか
1
+ htmlのフォームから取得した文字をjsonファイルに代入したいんですがカッコを最低限の数にしたいです。どうすれば良いでしょうか
2
2
 
3
3
 
4
4
 

2

2019/01/13 14:02

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -62,6 +62,6 @@
62
62
 
63
63
  ```json
64
64
 
65
- [{"hoge":"hoge","hogehoge":"hogehoge"}]
65
+ {"hoge":"hoge","hogehoge":"hogehoge"}
66
66
 
67
67
  ```

1

2019/01/13 13:58

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -30,7 +30,7 @@
30
30
 
31
31
  $records[] = array(
32
32
 
33
- $message_post2 => $message_post2
33
+ $message_post1 => $message_post2
34
34
 
35
35
  );
36
36