質問編集履歴
4
check_step5_1.phpをcheck_step5_2.phpに変更、<div><a href="index_step5_2.php?action=rewrite">«
title
CHANGED
File without changes
|
body
CHANGED
@@ -186,7 +186,7 @@
|
|
186
186
|
|
187
187
|
```
|
188
188
|
```php
|
189
|
-
//check_step5_1.php
|
189
|
+
//check_step5_1.php -->check_step5_2.phpに変更
|
190
190
|
|
191
191
|
<?php
|
192
192
|
session_start();
|
@@ -236,7 +236,7 @@
|
|
236
236
|
<img src="../member_picture/<?php echo htmlspecialchars($_SESSION['join']['image'], ENT_QUOTES, 'UTF-8'); ?>" width="100" height="100" alt="" />
|
237
237
|
</dd>
|
238
238
|
</dl>
|
239
|
-
<div><a href="
|
239
|
+
<div><a href="index_step5_2.php?action=rewrite">« 書き直す</a> | <input type="submit" value="登録する" /></div>
|
240
240
|
</form>
|
241
241
|
</div>
|
242
242
|
|
3
コード修正、「// 書き直し」
title
CHANGED
File without changes
|
body
CHANGED
@@ -36,8 +36,6 @@
|
|
36
36
|
|
37
37
|
$input_image = filter_input(INPUT_POST, 'image');
|
38
38
|
|
39
|
-
$input_action = filter_input(INPUT_POST, 'action');
|
40
|
-
|
41
39
|
if (!empty($_POST)) {
|
42
40
|
|
43
41
|
// エラー項目の確認
|
@@ -96,7 +94,8 @@
|
|
96
94
|
}
|
97
95
|
|
98
96
|
// 書き直し
|
97
|
+
// 書き直し
|
99
|
-
if ($
|
98
|
+
if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'rewrite'){
|
100
99
|
$_POST = $_SESSION['join'];
|
101
100
|
$error['rewrite'] = true;
|
102
101
|
}
|
2
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -15,9 +15,12 @@
|
|
15
15
|
どこか間違っていると思い検討したのですが、探し出せません。
|
16
16
|
よろしくお願いいたします。
|
17
17
|
|
18
|
+
実行した後のURLは「php_sample/part5_2_sample/join/step5/index_step5_5.php?action=rewrite」です。
|
19
|
+
実行後の画面です。
|
20
|
+
|
18
21
|

|
22
|
+
頂きましたネットは既に拝見済みですが、まだよく消化できていません。
|
19
23
|
|
20
|
-
|
21
24
|
```php
|
22
25
|
//index_step5_2.php
|
23
26
|
|
1
追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -15,9 +15,9 @@
|
|
15
15
|
どこか間違っていると思い検討したのですが、探し出せません。
|
16
16
|
よろしくお願いいたします。
|
17
17
|
|
18
|
+

|
18
19
|
|
19
20
|
|
20
|
-
|
21
21
|
```php
|
22
22
|
//index_step5_2.php
|
23
23
|
|