質問編集履歴
3
コードを修正致しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -148,7 +148,11 @@
|
|
148
148
|
|
149
149
|
?>
|
150
150
|
|
151
|
+
<?php
|
152
|
+
|
151
153
|
echo json_encode(["status"=> $result]);
|
154
|
+
|
155
|
+
?>
|
152
156
|
|
153
157
|
<?php else:?>
|
154
158
|
|
2
スクリーンショットを追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -157,3 +157,7 @@
|
|
157
157
|
<?php endif;?>
|
158
158
|
|
159
159
|
```
|
160
|
+
|
161
|
+
スクリーンショット
|
162
|
+
|
163
|
+
![ScreenShot](fc3736334e2185832d760bf626da3c37.png)
|
1
コードを修正しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,7 +34,7 @@
|
|
34
34
|
|
35
35
|
|
36
36
|
|
37
|
-
|
37
|
+
*コードを修正しました
|
38
38
|
|
39
39
|
```php
|
40
40
|
|
@@ -66,7 +66,11 @@
|
|
66
66
|
|
67
67
|
function(data){//success
|
68
68
|
|
69
|
+
console.log(result)// {"status":false}
|
70
|
+
|
71
|
+
console.log(result.status)// undefined
|
72
|
+
|
69
|
-
if (result
|
73
|
+
if (result) {
|
70
74
|
|
71
75
|
errCode.push("usedname")
|
72
76
|
|
@@ -74,7 +78,7 @@
|
|
74
78
|
|
75
79
|
$('<p id="er" class="errmessage">すでに使用されているユーザ名です</p>').appendTo('.errmessagebox').hide().fadeIn(1000);
|
76
80
|
|
77
|
-
}else
|
81
|
+
}else{
|
78
82
|
|
79
83
|
$('#er').remove();
|
80
84
|
|
@@ -144,15 +148,7 @@
|
|
144
148
|
|
145
149
|
?>
|
146
150
|
|
147
|
-
<?php if ($result) {
|
148
|
-
|
149
|
-
|
151
|
+
echo json_encode(["status"=> $result]);
|
150
|
-
|
151
|
-
}elseif($result==false){
|
152
|
-
|
153
|
-
echo '<script> const result = "none_usedname"</script>';
|
154
|
-
|
155
|
-
}?>
|
156
152
|
|
157
153
|
<?php else:?>
|
158
154
|
|