-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditUser.php
54 lines (32 loc) · 1.23 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
46
47
48
49
50
51
52
53
54
<?php
require_once './views/header.php';
require("./requires/connection.php");
?>
<?php
if (isset($_GET['id']))
{
$id = $_GET['id'];
$dbselect = "SELECT * FROM users WHERE userID= '".$id."';";
$res= mysqli_query($connection, $dbselect) or die ('Error');
while($row = mysqli_fetch_array($res))
{
?>
<!-- ================================================ -->
<form action="editUserProcess.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="userID" id="userID" value="<?php echo $row['userID'];?>" />
User ID
<input type="number" name="userID" id="userID" value="<?php echo $row['userID'];?>" placeholder="User ID" disabled><br><br><br>
Product Name
<input type="text" name="userName" id="userName" value="<?php echo $row['userName'];?>" placeholder="User Name" required><br><br><br>
User Password
<input type="password" name="userPassword" id="userPassword" value="<?php echo $row['userPassword'];?>" placeholder="User Password" required><br><br><br>
<input type="submit" name="submit" value ="submit">
</form>
<!-- ================================================ -->
<?php
}
}
?>
<?php
require_once './views/footer.php';
?>