forked from g33kyrash/Online-Banking-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditprofile.php
123 lines (112 loc) · 4.49 KB
/
editprofile.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
<!DOCTYPE html>
<?php
include '_inc/dbconn.php';
$sql="SELECT * FROM `admin` WHERE id=1";
$result= mysql_query($sql) or die(mysql_error());
$rws= mysql_fetch_array($result);
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css"/>
<title>profile editing</title>
</head>
<body>
<div class="wrapper">
<div class="header">
</div>
<div class="contentsection">
<form action="alter.php" method="POST" enctype="multipart/form-data">
<table align="center" border="21" class="table">
<tr>
<td>NAME</td>
<td><input type="text" name="name" value="<?php echo $rws[1];?>" required=""/></td>
</tr>
<tr>
<td>gender</td>
<td>
M<input type="radio" name="gender" value="M" <?php if($rws[2]=="M") echo "checked";?>/>
F<input type="radio" name="gender" value="F" <?php if($rws[2]=="F") echo "checked";?>/>
</td>
</tr>
<tr>
<td>
DOB
</td>
<td>
<input type="date" name="dob" value="<?php echo $rws[3];?>"/>
</td>
</tr>
<tr>
<td>Nominee</td>
<td><input type="text" name="nominee" value="<?php echo $rws[4];?>" required=""/></td>
</tr>
<tr>
<td>relationship</td>
<td>
<select name="status">
<option <?php if($rws[5]=="unmarried") echo "selected";?>>unmarried</option>
<option <?php if($rws[5]=="married") echo "selected";?>>married</option>
<option <?php if($rws[5]=="divorced") echo "selected";?>>divorced</option>
</select>
</td>
</tr>
<tr>
<td>designation</td>
<td>
<input type="text" name="designation" value="<?php echo $rws[6];?>"/>
</td>
</tr>
<tr>
<td>department</td>
<td>
<select name="dept">
<option <?php if($rws[7]=="revenue") echo "selected";?>>revenue</option>
<option <?php if($rws[7]=="developer") echo "selected";?>>developer</option>
</select>
</td>
</tr>
<tr>
<td>
DOJ
</td>
<td>
<input type="date" name="doj" value="<?php echo $rws[8];?>"/>
</td>
</tr>
<tr>
<td>upload your photo: </td>
<td>
<input type="file" name="profile"/><br/>
</td>
</tr>
<tr>
<td>Address:</td>
<td><textarea name="address"><?php echo $rws[10];?></textarea></td>
</tr>
<tr>
<td>phone</td>
<td><input type="text" name="phone" value="<?php echo $rws[11];?>" required=""/></td>
</tr>
<tr>
<td>mobile</td>
<td><input type="text" name="mobile" value="<?php echo $rws[12];?>" required=""/></td>
</tr>
<tr>
<td>e mail id</td>
<td><input type="email" name="email" value="<?php echo $rws[13];?>" required=""/></td>
</tr>
<tr>
<td>password</td>
<td><input type="password" name="pwd" value="<?php echo $rws[14];?>" required=""/></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="alter" value="UPDATE DATA"/></td>
</tr>
</table>
</form>
</div>
<div class="footer">
</div>
</div>
</body>
</html>