-
Notifications
You must be signed in to change notification settings - Fork 0
/
account.php
37 lines (30 loc) · 1.08 KB
/
account.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
<!DOCTYPE html>
<html>
<head>
<title>Accounts</title>
<script src="js/enableFields.js" defer></script>
<link rel="stylesheet" href="css/styles.css">
</head>
<?php session_start(); ?>
<body>
<div id="wrapper4">
<div id="form-container">
<h1>Accounts</h1>
<form method="POST" action="update.php">
<label for="uname">Username</label>
<input type="text" placeholder="Enter Username" name="uname" value="<?php
if (isset($_SESSION["uname"])) {
echo $_SESSION["uname"];
} ?>" readonly>
<label for="psw">Password</label>
<input type="password" placeholder="Enter Password" name="psw" readonly>
<input type="submit" name="save" value="Save" disabled>
<div id="link-container">
<input type="button" value="Edit" onclick="enableFields();" />
<a href="index.php" title="Cancel">Cancel</a>
</div>
</form>
</div>
</div>
</body>
</html>