質問編集履歴

2

タイトルの変更

2023/03/25 05:28

投稿

marin_
marin_

スコア2

test CHANGED
@@ -1 +1 @@
1
- php 変数、配列の未定義によるエラー
1
+ php Undefined array key エラー等の解決方法を教えてください。
test CHANGED
File without changes

1

記入欄の訂正

2023/03/25 01:33

投稿

marin_
marin_

スコア2

test CHANGED
File without changes
test CHANGED
@@ -15,7 +15,6 @@
15
15
 
16
16
  ```
17
17
  エラーメッセージ
18
-
19
18
  1.
20
19
  Warning: Undefined array key "action" in C:\xampp2\htdocs\post\join\index.php on line 50
21
20
 
@@ -28,6 +27,7 @@
28
27
  3.
29
28
  Warning: Trying to access array offset on value of type null in C:\xampp2\htdocs\post\join\index.php on line 78
30
29
 
30
+
31
31
  ```
32
32
 
33
33
  ### 該当のソースコード
@@ -36,7 +36,7 @@
36
36
  PHP
37
37
 
38
38
  ソースコード
39
- ```
39
+
40
40
  1.
41
41
  C:\xampp2\htdocs\post\join\index.php 50行目~53行目
42
42
  if ($_REQUEST['action'] == 'rewrite') {
@@ -49,7 +49,9 @@
49
49
  <input type="text" name="name" size="35" maxlength="255" value="<?php echo htmlspecialchars($_POST['name'], ENT_QUOTES); ?>" />
50
50
  <?php if ($error['name'] == 'blank'): ?>
51
51
 
52
+
53
+
52
- 前提のPHPも下記に記載いたします。
54
+ //前提のPHPも下記に記載いたします。
53
55
  <?php
54
56
  require('../dbconnect.php');
55
57
 
@@ -105,6 +107,8 @@
105
107
  }
106
108
  ?>
107
109
 
110
+ ```
111
+
108
112
 
109
113
 
110
114
  初歩的な質問で大変恐縮ですが、