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_TP_Note/controllers/c_poll.php

14 lines
355 B
PHP
Raw Normal View History

2020-11-13 09:18:41 +01:00
<?php
if (isset($_GET["id"]) and $_GET["id"]) {
$pollId = htmlspecialchars($_GET["id"]);
if (isset($_POST["answer"]) and $_POST["answer"])
$answer = htmlspecialchars($_POST["answer"]);
require_once(PATH_MODELS.$page.'.php');
} else
$alert = choixAlert("url_non_valide");
//appel de la vue
require_once(PATH_VIEWS.$page.'.php');