-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.php
32 lines (32 loc) · 906 Bytes
/
update.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
<?php
// Updating Records
include "connection.php";
include "functions.php";
include "header.php";
if(isset($_POST['update']))
{
updateData();
}
?>
<div class="container">
<h2 class="text-center">Update</h2>
<form action="update.php" method="post">
<div class="form-group">
<label for="username">Username:</label>
<input type="username" class="form-control" placeholder="Enter username" name="username">
</div>
<div class="form-group">
<label for="pwd">Password</label>
<input type="password" class="form-control" placeholder="Enter password" name="pwd">
</div>
<div class="form-group">
<select name="id" id="">
<?php
idDropDown();
?>
</select>
</div>
<button type="submit" class="btn btn-default" name="update">Update</button>
</form>
</div>
<?php include "footer.php"; ?>