-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathupdate2.php
More file actions
74 lines (72 loc) · 2.99 KB
/
update2.php
File metadata and controls
74 lines (72 loc) · 2.99 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
<?php
include('db_connect.php');
include('navbar.html');
$sql = "SELECT * FROM members WHERE id = '{$_GET['id']}'";
$result = mysqli_query($connect,$sql) or die(mysqli_error());
$row = mysqli_fetch_array($result);
?>
<!DOCTYPE html>
<html>
<body>
<div class="container" style="margin-top:100px">
<div style="margin-left:10%;padding:1px 16px;height:auto;">
<br><br>
<section style="margin: 5px;">
<fieldset style="min-height:100px;">
<legend><b> Submit Feedback </b> </legend>
<p><i>Hey Please complete the feedback, It will help us to serve you better.</i></p>
<form action="update.php" name= "update" method="post">
<br>
<table>
<!-- <tr>
<td> ID :
</td>
<td> <input type="text" name="id" id="id" value="<?php echo $id = $row['id']; ?>">
</td>
</tr> -->
<tr>
<td><br></td>
</tr>
<tr>
<td> First Name :
</td>
<td> <input type="text" name="fname" id="fname" value="<?php echo $fname = $row['fname']; ?>">
</td>
</tr>
<tr>
<td><br></td>
</tr>
<tr>
<td> Last Name : </td>
<td> <input type="text" name="lname" id="lname" value="<?php echo $lname = $row['lname']; ?>">
</td>
</tr>
<tr>
<td><br></td>
</tr>
<tr>
<td>Age : </td>
<td> <input type="text" name="age" id="age" value="<?php echo $age = $row['age']; ?>">
</td>
</tr>
<tr>
<td><br></td>
</tr>
<tr>
<td> Contact : </td>
<td> <input type="text" name="contact" id="contact" value="<?php echo $contact = $row['contact']; ?>">
</td>
</tr>
<tr>
<td><br></td>
</tr>
</table>
</fieldset>
<br>
<input type="submit" name="update" value="SUBMIT" >
<input type="reset" value="CLEAR">
</form>
</div>
</div>
</body>
</html>