-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathedit.php
More file actions
53 lines (45 loc) · 1.5 KB
/
Copy pathedit.php
File metadata and controls
53 lines (45 loc) · 1.5 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
<html>
<?php
session_start ();
require_once 'mysql_connect.php';
$id = $_GET['id'];
$sql = "select * from `contact` WHERE id = $id";
// echo $sql;
$result = mysqli_query($dbc, $sql);
$record = mysqli_fetch_array($result);
// echo $record['id'];
?>
<body>
<h1 align="center">EDIT FEEDBACK</h1>
<table align="center">
<form action="process_edit.php" method="post">
<tr>
<td style="font-weight: bold; padding-bottom: 10px" align="right">Name</td>
<td style="padding-bottom: 10px">
<input type="text" name="name" value="<?php echo $record['name']?>" />
</td></tr>
<tr>
<td style="font-weight: bold; padding-bottom: 10px" align="right"> Email </td>
<td style="padding-bottom: 10px">
<input type="text" name="email" value="<?php echo $record['email']?>" />
</td></tr>
<tr>
<td style="font-weight: bold; padding-bottom: 10px" align="right">Subject</td>
<td style="padding-bottom: 10px">
<input type="text" name="subject" value="<?php echo $record['subject']?>" />
</td></tr>
<tr>
<td style="font-weight: bold; padding-bottom: 10px" align="right"> Message </td>
<td style="padding-bottom: 10px">
<input type="text" name="message" value="<?php echo $record['message']?>" />
</td></tr>
<tr>
<td> </td>
<td style="padding-bottom: 10px">
<input type="submit" name="con_submit" value="Save" />
<input type="reset" name="con_reset" value="Reset" />
<input type="button" value="Cancel" onclick="gotoList();" />
<input type="hidden" name="id" value="<?php echo $record['id']; ?>">
</td></table>
</body>
</html>