You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
941 B

<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$prenom=htmlspecialchars(trim($_POST["prenom"]));
$nom=htmlspecialchars(trim($_POST["nom"]));
$mail=htmlspecialchars(trim($_POST["mail"]));
$tel=htmlspecialchars(trim($_POST["tel"]));
$mtf=htmlspecialchars(trim($_POST["Motif"]));
$date=htmlspecialchars(trim($_POST["date"]));
$prem=htmlspecialchars(trim($_POST["radio_dtn"]));
$desc=htmlspecialchars(trim($_POST["description"]));
if (!filter_var($mail, FILTER_VALIDATE_EMAIL)){
echo "<p>Attention, adresse mail invalide</p>";
}
echo "<p>Prénom: $prenom</p>";
echo "<p>Nom: $nom</p>";
echo "<p>Mail $mail</p>";
echo "<p>Numéro de téléphone: $tel</p>";
echo "<p>Motif: $mtf</p>";
echo "<p>Date: $date</p>";
echo "<p>Demande: $prem</p>";
echo "<p>Description: $desc</p>";
echo "<p>Votre demande a été prise en compte et va être validée </p>";
}
?>