-
Notifications
You must be signed in to change notification settings - Fork 7
/
profile_edit.php
57 lines (48 loc) · 1.99 KB
/
profile_edit.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
<?php
$id =$_SESSION['id'];
$result = query("SELECT * FROM customer WHERE id='$id'");
$row = mysql_fetch_array($result);
$email = $row['email'];
$phone = $row['phone'];
$address = $row['address'];
$faculty = $row['faculty'];
$dept = $row['dept'];
$nok_name = $row['nok_name'];
$n_phone = $row['n_phone'];
$pwd = $row['pwd'];
$emp_no = $row['employee_no'];
?>
<form method="post" action="save.php" enctype="multipart/form-data">
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" name="email" class="form-control" id="exampleInputEmail1" value="<?php echo $email; ?>">
<input type="text" name="phone" class="form-control" value="<?php echo $phone; ?>"/>
</div>
<div class="form-group">
<label for="em">Employee ID</label>
<input type="text" name="emp_no" class="form-control" id="em" placeholder="employee no" value="<?php echo $emp_no; ?>">
</div>
<div class="form-group">
<label for="address">Address</label>
<input type="text" id="address" name="address" class="form-control" value="<?php echo $address; ?>"/>
</div>
<div class="form-group">
<label for="nok">Next of Kin Name</label>
<input type="text" name="nok" class="form-control" id="nok" value="<?php echo $nok_name; ?>">
<label for="n_phone">Next of Kin Phone no</label>
<input type="text" id="n_phone" name="n_phone" value="<?php echo $n_phone; ?>"/>
</div>
<div class="form-group">
<label for="nok">Image Upload</label>
<input type="file" name="propic" class="form-control" id="nok">
</div>
<div class="form-group">
<label for="n">Password</label>
<input type="password" name="pwd" class="form-control" id="n" value="<?php echo $pwd; ?>">
<label for="no">Re-type Password</label>
<input type="password" name="pwwd" class="form-control" id="no" value="<?php echo $pwd; ?>" REQUIRED>
<div id="msg">
</div>
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>