質問編集履歴

2

GET->POST

2017/08/25 05:50

投稿

nobodytolove123
nobodytolove123

スコア61

test CHANGED
File without changes
test CHANGED
@@ -44,7 +44,7 @@
44
44
 
45
45
  <h1 class="form-title">問{$rp}</h1>
46
46
 
47
- <form class="select-form" method="GET" action="test.php" autocomplete="off">
47
+ <form class="select-form" method="POST" action="test.php" autocomplete="off">
48
48
 
49
49
  <ul class="select">
50
50
 
@@ -62,7 +62,7 @@
62
62
 
63
63
 
64
64
 
65
- if(isset($_GET['result'])){
65
+ if(isset($_POST['result'])){
66
66
 
67
67
  while($i < 5){
68
68
 

1

body内に記述

2017/08/25 05:50

投稿

nobodytolove123
nobodytolove123

スコア61

test CHANGED
File without changes
test CHANGED
@@ -17,6 +17,20 @@
17
17
  ```ここに言語を入力
18
18
 
19
19
  <!DOCTYPE html>
20
+
21
+ <html>
22
+
23
+ <head>
24
+
25
+ <meta charset="utf-8">
26
+
27
+ <title>PHP Test</title>
28
+
29
+ <link rel="stylesheet" type="text/css" href="/stylesheet.css">
30
+
31
+ </head>
32
+
33
+ <body>
20
34
 
21
35
  <?php
22
36
 
@@ -70,19 +84,7 @@
70
84
 
71
85
  ?>
72
86
 
73
- <html>
74
87
 
75
- <head>
76
-
77
- <meta charset="utf-8">
78
-
79
- <title>PHP Test</title>
80
-
81
- <link rel="stylesheet" type="text/css" href="/stylesheet.css">
82
-
83
- </head>
84
-
85
- <body>
86
88
 
87
89
  </body>
88
90