<?php /** * Created by PhpStorm. * User: Bastien * Date: 12/01/2016 * Time: 21:57 */ $Contenu = filter_var(HTMLUtilities::encode($_REQUEST['Contenu']), FILTER_SANITIZE_STRING); $dateParution = date('Y-m-d'); $Auteur = filter_var(HTMLUtilities::encode($_REQUEST['Auteur']), FILTER_SANITIZE_STRING);
<?php /** * Created by PhpStorm. * User: Bastien * Date: 13/01/2016 * Time: 01:49 */ $titre = filter_var(HTMLUtilities::encode($_POST['Titre']), FILTER_SANITIZE_STRING); $contenu = filter_var(HTMLUtilities::encode($_POST['Contenu']), FILTER_SANITIZE_STRING); $dateParution = date('Y-m-d'); $cheminImage = filter_var(HTMLUtilities::encode($_POST['Image']), FILTER_SANITIZE_STRING);