質問編集履歴
8
変更内容
title
CHANGED
File without changes
|
body
CHANGED
@@ -116,6 +116,7 @@
|
|
116
116
|
```
|
117
117
|
以上、よろしくお願いいたします。
|
118
118
|
|
119
|
+
|
119
120
|
解決方法
|
120
121
|
|
121
122
|
<button type="submit" id="gay_resgister" class="btn btn-primary btn-block">登録</button>
|
7
変更内容
title
CHANGED
File without changes
|
body
CHANGED
@@ -114,27 +114,12 @@
|
|
114
114
|
document.getElementById("regist_Form").setAttribute("method",'post');
|
115
115
|
}
|
116
116
|
```
|
117
|
+
以上、よろしくお願いいたします。
|
117
118
|
|
118
|
-
|
119
|
+
解決方法
|
119
|
-
```
|
120
|
-
$("#gay_resgister").click(function () {
|
121
120
|
|
122
|
-
|
121
|
+
<button type="submit" id="gay_resgister" class="btn btn-primary btn-block">登録</button>
|
123
|
-
var pass = document.getElementById("password").value;
|
124
|
-
|
125
|
-
if( pass_2 == pass ){
|
126
|
-
alert(pass);
|
127
|
-
var xhr = new XMLHttpRequest();
|
128
|
-
xhr.open('post','./mailbox');
|
129
|
-
xhr.send();
|
130
|
-
xhr.onreadystatechange = function(){
|
131
|
-
if(xhr.readyState === 4 && xhr.status === 200){
|
132
|
-
}
|
133
|
-
}
|
134
|
-
}else{
|
135
|
-
toastr.error("パスワードが異なります");
|
136
|
-
}
|
137
122
|
|
138
|
-
|
123
|
+
上記を以下に
|
139
|
-
|
124
|
+
|
140
|
-
|
125
|
+
<input type="button" id="gay_resgister" class="btn btn-primary btn-block" value="登録">
|
6
変更内容
title
CHANGED
File without changes
|
body
CHANGED
@@ -125,7 +125,7 @@
|
|
125
125
|
if( pass_2 == pass ){
|
126
126
|
alert(pass);
|
127
127
|
var xhr = new XMLHttpRequest();
|
128
|
-
xhr.open('post','./
|
128
|
+
xhr.open('post','./mailbox');
|
129
129
|
xhr.send();
|
130
130
|
xhr.onreadystatechange = function(){
|
131
131
|
if(xhr.readyState === 4 && xhr.status === 200){
|
5
変更内容
title
CHANGED
File without changes
|
body
CHANGED
@@ -114,4 +114,27 @@
|
|
114
114
|
document.getElementById("regist_Form").setAttribute("method",'post');
|
115
115
|
}
|
116
116
|
```
|
117
|
+
|
118
|
+
JS調整後
|
119
|
+
```
|
120
|
+
$("#gay_resgister").click(function () {
|
121
|
+
|
122
|
+
var pass_2 = document.getElementById("password_2").value;
|
123
|
+
var pass = document.getElementById("password").value;
|
124
|
+
|
125
|
+
if( pass_2 == pass ){
|
126
|
+
alert(pass);
|
127
|
+
var xhr = new XMLHttpRequest();
|
128
|
+
xhr.open('post','./mail');
|
129
|
+
xhr.send();
|
130
|
+
xhr.onreadystatechange = function(){
|
131
|
+
if(xhr.readyState === 4 && xhr.status === 200){
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}else{
|
135
|
+
toastr.error("パスワードが異なります");
|
136
|
+
}
|
137
|
+
|
138
|
+
});
|
139
|
+
```
|
117
140
|
以上、よろしくお願いいたします。
|
4
変更内容
title
CHANGED
File without changes
|
body
CHANGED
@@ -3,7 +3,8 @@
|
|
3
3
|
作成しています。
|
4
4
|
その際、確認用パスワードを設けておりますが、上手く制御が
|
5
5
|
掛からずそのままinsertされてしまいます。
|
6
|
+
確認用パスワード及びバリデーション含め最適な方法は
|
6
|
-
|
7
|
+
ありますでしょうか?
|
7
8
|
お分かりの方おられましたら、ご教示下さい。
|
8
9
|
|
9
10
|
Modal_Form()
|
3
変更内容
title
CHANGED
File without changes
|
body
CHANGED
@@ -82,6 +82,12 @@
|
|
82
82
|
|
83
83
|
</script>
|
84
84
|
```
|
85
|
+
Route(Laravel)
|
86
|
+
```
|
87
|
+
Route::post('mailbox', 'GayregistController@Gay_register');
|
88
|
+
|
89
|
+
```
|
90
|
+
|
85
91
|
目的
|
86
92
|
フォームからaction設定しpost送信し、Laravelのコントローラーを利用してinsert。
|
87
93
|
|
2
記載変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -88,7 +88,7 @@
|
|
88
88
|
試したこと
|
89
89
|
①modalウィンドのbuttonタグにonclick属性を設定して、関数を呼び込んだが変わらない。
|
90
90
|
```
|
91
|
-
button type="submit" id="gay_resgister" class="btn btn-primary btn-block" onclick="btn1click()">登録</button>
|
91
|
+
<button type="submit" id="gay_resgister" class="btn btn-primary btn-block" onclick="btn1click()">登録</button>
|
92
92
|
```
|
93
93
|
JS側
|
94
94
|
```
|
1
変更内容
title
CHANGED
File without changes
|
body
CHANGED
@@ -85,7 +85,7 @@
|
|
85
85
|
目的
|
86
86
|
フォームからaction設定しpost送信し、Laravelのコントローラーを利用してinsert。
|
87
87
|
|
88
|
-
|
88
|
+
試したこと
|
89
89
|
①modalウィンドのbuttonタグにonclick属性を設定して、関数を呼び込んだが変わらない。
|
90
90
|
```
|
91
91
|
button type="submit" id="gay_resgister" class="btn btn-primary btn-block" onclick="btn1click()">登録</button>
|