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/classcontact.php
2022-05-28 16:49:39 +02:00

13 lines
492 B
PHP

<?php
$_POST = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING); // prevent XSS
if(isset($_POST["fd_name"]) && !empty($_POST["fd_name"]) && isset($_POST["fd_content"]) && !empty($_POST["fd_content"]) && empty($_POST["fd_dumbot"])){
$nom=$_POST["fd_name"];
$email=$_POST["fd_mail"]; // PAS OBLIGATOIRE
$contenu=$_POST["fd_content"];
// echo "nom : ".$nom."<br/>";
// echo "mail : ".$email."<br/>";
// echo "contenu : ".$contenu;
include("classes/mailer.php");
}
?>