質問編集履歴
3
関係ないタグを外しました
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
2
コード付け足し
test
CHANGED
File without changes
|
test
CHANGED
@@ -68,6 +68,12 @@
|
|
68
68
|
|
69
69
|
```
|
70
70
|
|
71
|
+
```php
|
72
|
+
|
73
|
+
<?php echo do_shortcode('[form]'); ?>
|
74
|
+
|
75
|
+
```
|
76
|
+
|
71
77
|
```jQuery
|
72
78
|
|
73
79
|
<script>
|
1
コードを付けたし
test
CHANGED
File without changes
|
test
CHANGED
@@ -21,6 +21,26 @@
|
|
21
21
|
|
22
22
|
|
23
23
|
### 実装したコード
|
24
|
+
|
25
|
+
### functions.php
|
26
|
+
|
27
|
+
```php
|
28
|
+
|
29
|
+
function form_post() {
|
30
|
+
|
31
|
+
if(isset($_POST)){
|
32
|
+
|
33
|
+
$postArray = json_encode($_POST, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT);
|
34
|
+
|
35
|
+
echo '<script>var postArray = '. $postArray .';</script>';
|
36
|
+
|
37
|
+
}
|
38
|
+
|
39
|
+
}
|
40
|
+
|
41
|
+
add_shortcode('form', 'form_post');
|
42
|
+
|
43
|
+
```
|
24
44
|
|
25
45
|
### 1、登録ページ page-img.php
|
26
46
|
|