<?php
session_start();
$conn = mysqli_connect('localhost', 'ahmeuesz_dino', 'X39IW2ho3^5h6d_5', 'ahmeuesz_myapp');

if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    $name = $_POST['name'];
    $_SESSION['name'] = $name;
    header('Location: form.html');
    exit();
}
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Login - Namaz Tracker</title>
</head>
<body>
    <h2>Login</h2>
    <form action="login.php" method="post">
        <label>Your Name:</label>
        <input type="text" name="name" required>
        <button type="submit">Login</button>
    </form>
</body>
</html>
