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