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.
73 lines
1.8 KiB
73 lines
1.8 KiB
<!doctype html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Pikes Peak</title>
|
|
<link rel="stylesheet" type="text/css" href="CSS/Style.css">
|
|
</head>
|
|
|
|
<body>
|
|
<header>
|
|
<nav>
|
|
<a href="pageActualites.html">actus</a>
|
|
<a href="pageTableaux.html">taleaux</a>
|
|
<a href="PageAcceuil.html" class="PPIHC"><img src="Medias/Images/PPIHC.png" id="PPIHC"></a>
|
|
<a href="PageImages.html">Images</a>
|
|
<a href="PageVideo.html">vidéos</a>
|
|
</nav>
|
|
</header>
|
|
|
|
Bonjour,
|
|
<?php
|
|
|
|
$nom = $_POST['Nom'];
|
|
$prenom = $_POST['Prenom'];
|
|
$email = $_POST['email'];
|
|
$raison = $_POST['raison'];
|
|
$sexe = $_POST['sexe'];
|
|
$date = $_POST['date'];
|
|
$message = $_POST['message'];
|
|
$check = $_POST['conditions'];
|
|
|
|
echo $nom;
|
|
|
|
if (filter_var($email, FILTER_VALIDATE_EMAIL)) {
|
|
echo("<br>$email is a valid email address<br>");
|
|
} else {
|
|
echo("<br>$email is not a valid email address<br>");
|
|
}
|
|
if(empty($nom) || strlen($nom) <2 || strlen($nom) > 20)
|
|
{
|
|
echo '<br>Le nom doit être renseigné<br>';
|
|
}
|
|
if(empty($prenom) || strlen($prenom) <2 || strlen($prenom) > 20)
|
|
{
|
|
echo '<br>Le prénom doit être renseigné ou est pas de la bonne taille (compris entre 2 et 20)<br>';
|
|
}
|
|
if(empty($raison))
|
|
{
|
|
echo '<br>La raison doit être renseignée<br>';
|
|
}
|
|
if(empty($sexe))
|
|
{
|
|
echo '<br>Le sexe doit être renseigné<br>';
|
|
}
|
|
if(empty($message))
|
|
{
|
|
echo '<br>Le message doit être renseigné<br>';
|
|
}
|
|
if(empty($check))
|
|
{
|
|
echo '<br>Les conditions doivent être cochées<br>';
|
|
}
|
|
?>.
|
|
|
|
<footer>
|
|
<div id="contact">
|
|
<p>© 2004-2022</p>
|
|
<p>AntoinePEREDERII corp.</p>
|
|
<p><a href="PageFormulaire.html">Contact</a></p>
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|