質問編集履歴

1

具体化

2016/07/04 16:37

投稿

earnest_gay
earnest_gay

スコア615

test CHANGED
File without changes
test CHANGED
@@ -32,7 +32,7 @@
32
32
 
33
33
  -
34
34
 
35
- <input type="tel" class="tel2" name="tel2" value="<?php echo h(filter_input_array(INPUT_POST, 'tel2')); ?>" maxlength="5" pattern="^[0-9]+$" title="半角数字以外入力できません。" required>
35
+ <input type="tel" class="tel2" name="tel2" value="<?php echo h(filter_input(INPUT_POST, 'tel2')); ?>" maxlength="5" pattern="^[0-9]+$" title="半角数字以外入力できません。" required>
36
36
 
37
37
  -
38
38
 
@@ -44,7 +44,7 @@
44
44
 
45
45
  $_POST['tel1']では表示されていますが
46
46
 
47
- filter_input_array(INPUT_POST, 'tel2')では表示されません。
47
+ filter_input(INPUT_POST, 'tel2')では表示されません。
48
48
 
49
49
 
50
50
 
@@ -61,3 +61,9 @@
61
61
  $_POSTとfilter_input_array(INPUT_POST)は
62
62
 
63
63
  記述が違うだけで動作としては同じだと思っていたのですが、、、
64
+
65
+
66
+
67
+
68
+
69
+ 色んなvalueにfilter_input()で記述していっているので、できればそのままのfilter_input()で対応させたいのですが何か方法はないでしょうか?