<?php session_start(); if (!isset($_SESSION['logged_in'])) header('Location: index.html'); ?>
<!DOCTYPE html>
<html>
<head><meta charset="UTF-8"><title>Change Password</title><link rel="stylesheet" href="style.css"></head>
<body>
<div class="container">
    <h2>Change Your Password</h2>
    <form action="update_password.php" method="POST">
        <input type="password" name="old" placeholder="Current Password" required>
        <input type="password" name="new" placeholder="New Password" required>
        <button type="submit">Update</button>
    </form>
    <p><a href="index.html">Back</a></p>
</div>
</body>
</html>