This repository has been archived on 2024-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
HHH-www/classerrorbox.php
2022-05-28 16:49:39 +02:00

13 lines
586 B
PHP

<?php
$_POST = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING); // prevent XSS
if(isset($_POST["fd_errortype"]) && !empty($_POST["fd_errortype"]) && isset($_POST["fd_errortitre"]) && !empty($_POST["fd_errortitre"]) && isset($_POST["fd_content"]) && !empty($_POST["fd_content"]) && empty($_POST["fd_dumbot"])){
$errortype=$_POST["fd_errortype"];
$errortitre=$_POST["fd_errortitre"];
$contenu=$_POST["fd_content"];
echo "erreur : ".$errortype."<br/>";
echo "titre : ".$errortitre."<br/>";
echo "contenu : ".$contenu;
include("classes/errormailer.php");
}
?>