-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmember_modify_form.php
149 lines (142 loc) Β· 5.46 KB
/
member_modify_form.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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>λ©λλ‘±λν</title>
<link rel="stylesheet" type="text/css" href="./css/common.css">
<link rel="stylesheet" type="text/css" href="./css/member.css">
<link rel="stylesheet" href="css/main1.css">
<link rel="shortcut icon" href="img/favicon.png">
<script type="text/javascript" src="./js/member_modify.js"></script>
</head>
<body>
<header>
<?php include "header.php";?>
</header>
<?php
$con = mysqli_connect("localhost", "user1", "12345", "sample");
$sql = "select * from members where id='$userid'";
$result = mysqli_query($con, $sql);
$row = mysqli_fetch_array($result);
$pass = $row["pass"];
$name = $row["name"];
$email = explode("@", $row["email"]);
$email1 = $email[0];
$email2 = $email[1];
$univ = $row["univ"];
$department = $row["department"];
$faculty = $row["faculty"];
$student_num = $row["student_num"];
$phone_num = $row["phone_num"];
$birth = $row["birth"];
$gender = $row["gender"];
mysqli_close($con);
?>
<section>
<div id="main_img_bar">
<img src="./img/main_img.png">
</div>
<div id="main_content">
<div id="join_box">
<form name="member_form" method="post" action="member_modify.php?id=<?=$userid?>">
<h2>νμ μ 보μμ </h2>
<div class="form id">
<div class="col1">μμ΄λ</div>
<div class="col2">
<?=$userid?>
</div>
</div>
<div class="clear"></div>
<div class="form">
<div class="col1">λΉλ°λ²νΈ</div>
<div class="col2">
<input type="password" name="pass" value="<?=$pass?>">
</div>
</div>
<div class="clear"></div>
<div class="form">
<div class="col1">λΉλ°λ²νΈ νμΈ</div>
<div class="col2">
<input type="password" name="pass_confirm" value="<?=$pass?>">
</div>
</div>
<div class="clear"></div>
<div class="form">
<div class="col1">μ΄λ¦</div>
<div class="col2">
<input type="text" name="name" value="<?=$name?>">
</div>
</div>
<div class="clear"></div>
<div class="form email">
<div class="col1">μ΄λ©μΌ</div>
<div class="col2">
<input type="text" name="email1" value="<?=$email1?>">@<input
type="text" name="email2" value="<?=$email2?>">
</div>
</div>
<div class="clear"></div>
<div class="form">
<div class="col1">λνκ΅λͺ
</div>
<div class="col2">
<input type="text" name="univ" value="<?=$univ?>">
</div>
</div>
<div class="clear"></div>
<div class="form">
<div class="col1">νλΆ</div>
<div class="col2">
<input type="text" name="fac" value="<?=$faculty?>">
</div>
</div>
<div class="clear"></div>
<div class="form">
<div class="col1">νκ³Ό</div>
<div class="col2">
<input type="text" name="dpt" value="<?=$department?>">
</div>
</div>
<div class="clear"></div>
<div class="form">
<div class="col1">μλ
μμΌ</div>
<div class="col2">
<input type="text" name="birth" value="<?=$birth?>">
</div>
</div>
<div class="clear"></div>
<div class="form">
<div class="col1">μ±λ³</div>
<div class="col2">
<input type="text" name="gen" value="<?=$gender?>">
</div>
</div>
<div class="clear"></div>
<div class="form">
<div class="col1">νλ²</div>
<div class="col2">
<input type="text" name="stu_num" value="<?=$student_num?>">
</div>
</div>
<div class="clear"></div>
<div class="form">
<div class="col1">μ°λ½μ²</div>
<div class="col2">
<input type="text" name="phone_num" value="<?=$phone_num?>">
</div>
</div>
<div class="clear"></div>
<div class="bottom_line"> </div>
<div class="buttons">
<img style="cursor:pointer" src="./img/button_save.gif" onclick="check_input()">
<img id="reset_button" style="cursor:pointer" src="./img/button_reset.gif"
onclick="reset_form()">
</div>
</form>
</div> <!-- join_box -->
</div> <!-- main_content -->
</section>
<footer>
<?php include "footer.php";?>
</footer>
</body>
</html>