teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

追加

2019/11/21 07:58

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -4,7 +4,9 @@
4
4
  また、$トータルを別のページで表示させたいのですが
5
5
  requireでうまくいきません。
6
6
 
7
+ ```php
7
8
 
9
+
8
10
  <?php
9
11
  $cut = 0;
10
12
 
@@ -62,6 +64,7 @@
62
64
  <input type="submit" name="colorminus" value="ご案内">
63
65
  </form>
64
66
 
67
+ ```
65
68
 
66
69
  エラー
67
70
 

2

エラー

2019/11/21 07:58

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -60,4 +60,19 @@
60
60
  <form action="" method="POST">
61
61
  <input type="hidden" name="color" value="<?=$color?>">
62
62
  <input type="submit" name="colorminus" value="ご案内">
63
- </form>
63
+ </form>
64
+
65
+
66
+ エラー
67
+
68
+ Notice: Undefined index: cut in C:\xampp\htdocs\gomi\newfile.php on line 4
69
+
70
+ Notice: Undefined index: cutplus in C:\xampp\htdocs\gomi\newfile.php on line 8
71
+
72
+ Notice: Undefined index: cutminus in C:\xampp\htdocs\gomi\newfile.php on line 10
73
+
74
+ Notice: Undefined index: color in C:\xampp\htdocs\gomi\newfile.php on line 17
75
+
76
+ Notice: Undefined index: colorplus in C:\xampp\htdocs\gomi\newfile.php on line 21
77
+
78
+ Notice: Undefined index: colorminus in C:\xampp\htdocs\gomi\newfile.php on line 23

1

追加

2019/11/21 07:55

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -5,7 +5,7 @@
5
5
  requireでうまくいきません。
6
6
 
7
7
 
8
- ?php
8
+ <?php
9
9
  $cut = 0;
10
10
 
11
11
  if($_POST['cut']){