Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Edit Profile</title>
- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
- </head>
- <body>
- <?php
- // Include header
- include('header.php');
- ?>
- <div class="container">
- <div class="row">
- <!-- Include Left Navigation -->
- <?php include('nav.php'); ?>
- <!-- Main Content Section -->
- <div class="col-md-9">
- <h2>Edit Profile</h2>
- <?php if ($error): ?>
- <div class="alert alert-danger"><?php echo $error; ?></div>
- <?php endif; ?>
- <?php if ($success): ?>
- <div class="alert alert-success"><?php echo $success; ?></div>
- <?php endif; ?>
- <form method="POST" action="edit_profile.php">
- <div class="form-group">
- <label for="username">Username:</label>
- <input type="text" name="username" id="username" class="form-control" value="<?php echo htmlspecialchars($user['username']); ?>" disabled>
- </div>
- <div class="form-group">
- <label for="full_name">Full Name:</label>
- <input type="text" name="full_name" id="full_name" class="form-control" value="<?php echo htmlspecialchars($user['full_name']); ?>" required>
- </div>
- <div class="form-group">
- <label for="email">Email:</label>
- <input type="email" name="email" id="email" class="form-control" value="<?php echo htmlspecialchars($user['email']); ?>" required>
- </div>
- <button type="submit" class="btn btn-primary">Update Profile</button>
- </form>
- </div>
- </div>
- </div>
- <?php
- // Include footer
- include('footer.php');
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement