回答編集履歴

5

タイポ

2017/08/10 10:41

投稿

momf
momf

スコア416

test CHANGED
@@ -1,4 +1,4 @@
1
- $userがmysqlのユーザー情報とかぶるのと、フォームのnmae属性が間違っているので、
1
+ $userがmysqlのユーザー情報とかぶるのと、フォームのname属性が間違っているので、
2
2
 
3
3
  register_check.phpの
4
4
 

4

タイポ

2017/08/10 10:40

投稿

momf
momf

スコア416

test CHANGED
File without changes

3

修正

2017/08/10 10:40

投稿

momf
momf

スコア416

test CHANGED
@@ -1,4 +1,4 @@
1
- $userがmysqlのユーザー情報とかぶるので、
1
+ $userがmysqlのユーザー情報とかぶるのと、フォームのnmae属性が間違っているので、
2
2
 
3
3
  register_check.phpの
4
4
 

2

修正

2017/08/10 10:39

投稿

momf
momf

スコア416

test CHANGED
@@ -12,7 +12,11 @@
12
12
 
13
13
 
14
14
 
15
+ ```php
16
+
17
+ $rs = $stmt->execute(array($id));
18
+
15
-
19
+ ```
16
20
 
17
21
 
18
22
 

1

修正

2017/08/10 10:37

投稿

momf
momf

スコア416

test CHANGED
@@ -1,3 +1,5 @@
1
+ $userがmysqlのユーザー情報とかぶるので、
2
+
1
3
  register_check.phpの
2
4
 
3
5
 
@@ -22,4 +24,24 @@
22
24
 
23
25
 
24
26
 
27
+ として、register_submit.phpも
28
+
29
+
30
+
31
+ ```php
32
+
33
+ //$user 被るからダメ
34
+
35
+ $id = $_POST["user"];
36
+
37
+
38
+
39
+ $res = $stmt->execute(array($id,$salt,$hash,$mail,$url_pass,date('Y-m-d H:i:s'),date('Y-m-d H:i:s')));
40
+
41
+
42
+
43
+ ```
44
+
45
+
46
+
25
47
  にすればいいのではないでしょうか。