<?php if (isset($_POST["username"]) AND isset($_POST["nb"]) AND isset($_POST["word"])) { $username = htmlspecialchars($_POST["username"]); $nb = htmlspecialchars($_POST["nb"]); $word = htmlspecialchars($_POST["word"]); require_once(PATH_MODELS.$page.".php"); if (!isset($alert) OR !$alert) header("Location: index.php?page=hello&username=$username"); } elseif (isset($_POST["username"]) OR isset($_POST["nb"]) OR isset($_POST["word"])) $alert = choixAlert("login"); require_once(PATH_VIEWS.$page.".php");