-
Notifications
You must be signed in to change notification settings - Fork 0
/
edituser.php
45 lines (38 loc) · 1.04 KB
/
edituser.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
<?php session_start(); ?>
<?php
include 'db.php';
$user_id =$_REQUEST['id'];
$result = mysql_query("SELECT * FROM user WHERE id = '$user_id'");
$test = mysql_fetch_array($result);
if (!$result)
{
die("Error: Data not found..");
}
$id=$test['id'] ;
$username= $test['username'] ;
$password=$test['password'] ;
$name=$test['name'] ;
?>
<p><h1>Users Update</h1></p>
<form method="post" action="edituserecex.php">
<table width="342" border="0">
<tr>
<td width="107"></td>
<td width="315"><input type="hidden" name="id" value="<?php echo $id; ?>" /></td>
</tr>
<tr>
<td>Username:</td>
<td><input type="text" name="username" value="<?php echo $username; ?>"/></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="text" name="password"value="<?php echo $password; ?>" /></td>
</tr>
<tr>
<td>Name:</td>
<td><input type="text" name="name" value="<?php echo $name; ?>"/></td>
</tr>
<td> </td>
<td><input type="submit" name="save" value="Edit" /></td>
</tr>
</table>