-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcreat.php
More file actions
114 lines (87 loc) · 3.16 KB
/
creat.php
File metadata and controls
114 lines (87 loc) · 3.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="login.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Create Account</title>
<script src="//code.jquery.com/jquery-3.3.1.min.js"></script>
</head>
<script>
function create(){
console.log("sign up");
var id = document.getElementById("create_id").value;
var pw = document.getElementById("create_pw").value;
var name = document.getElementById("create_name").value;
var email = document.getElementById("create_email").value;
var answer = document.getElementById("create_answer").value;
if(id==""){
alert("아이디를 입력해주세요");
return false;
}
if(pw==""){
alert("비밀번호를 입력해주세요");
return false;
}
if(name==""){
alert("이름을 입력해주세요");
return false;
}
if(email==""){
alert("이메일을 입력해주세요");
return false;
}
if(answer==""){
alert("답변을 입력해주세요");
return false;
}
alert("다시 로그인 해주세요");
location.href='login.php'
}
</script>
<body>
<section class="login-form">
<h1></h1>
<div class="bar_logo">
<a href="">Creat Account</a>
</div>
<form name="member_form" method="post" action="member_insert.php">
<div class="int-area">
<input type="text" name="id" id="create_id"
autocomplete="off" required>
<label for="forgot_id">ID</label>
</div>
<div class="int-area">
<input type="password" name="pw" id="create_pw"
autocomplete="off" required>
<label for="forgot_pw">PASSWORD</label>
</div>
<div class="int-area">
<input type="text" name="name" id="create_name"
autocomplete="off" required>
<label for="forgot_id">NAME</label>
</div>
<div class="int-area">
<input type="text" name="email" id="create_email"
autocomplete="off" required>
<label for="forgot_pw">Email</label>
</div>
<div class="int-area">
<input type="text" name="answer" id="create_answer"
autocomplete="off" required>
<label id="creat_answer" type="text" onclick='change()'>ANSWER</label>
</div>
<div class="btn-area">
<button type="submit" onclick="create()">Sign in</button>
</div>
</form>
</section>
<script>
function change() {
const ans= document.getElementById('creat_answer');
ans.innerText = '당신이 가장 좋아하는 차량은?'
}
</script>
</body>
</html>