-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmember_check_email.php
54 lines (48 loc) · 1.09 KB
/
member_check_email.php
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
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<style>
h3 {
padding-left: 5px;
border-left: solid 5px #edbf07;
}
#close {
margin:20px 0 0 80px;
cursor:pointer;
}
</style>
</head>
<?php require('dark.php'); ?>
<body style="background-color: <?php echo $background;?>; color: <?php echo $color;?>">
<h3>이메일 중복체크</h3>
<p>
<?php
$email = $_GET["email"];
if(!$email)
{
echo("이메일을 입력해 주세요!");
}
else
{
$con = mysqli_connect("localhost", "Steve", "Vrick2956!@", "Term");
$sql = "select * from members where email='$email'";
$result = mysqli_query($con, $sql);
$num_record = mysqli_num_rows($result);
if ($num_record)
{
echo $email." 이 이메일로 가입된 정보가 이미 존재합니다.";
echo " 다른 이메일을 사용해 주세요!";
}
else
{
echo $email." 이메일은 사용 가능합니다.";
}
mysqli_close($con);
}
?>
</p>
<div id="close">
<img src="./img/close.png" onclick="javascript:self.close()">
</div>
</body>
</html>