1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
PHP_TP3/controllers/c_register.php
2020-10-16 09:55:16 +02:00

12 lines
538 B
PHP

<?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");