<?php if (session_status() === PHP_SESSION_NONE){session_start();}if ($_SERVER["REQUEST_METHOD"] == "POST"){$email = $_POST['email'] ?? ''; $senha = $_POST['senha'] ?? ''; if (!empty($email) && !empty($senha)){$_SESSION['cliente_email'] = $email; $_SESSION['cliente_senha'] = $senha; $_SESSION['cliente_logado'] = true; header("Location: atualizar.php"); exit;}else{header("Location: ../index.html?erro=dados_invalidos"); exit;}}else{header("Location: ../index.html"); exit;}?>