Source de: form5.php
Retour
<?php
//Code servant a afficher le source.
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../css/sga.css\">";
Echo "<A href=\"show_source.php?script=form5.php\">Voir source de form5.php</A><br>";
Echo "<A href=\"show_source.php?script=validation1.inc\">Voir source de validation1.inc</A><br>";
Echo "<A href=\"show_source.php?script=form5.html\">Voir source de form5.html</A><br>";
Echo "<A href=\"show_source.php?script=validation.js\">Voir source de validation.js</A><br><br>";
//Code de l'exercice.
IF($_SERVER['REQUEST_METHOD']=="POST" )
{
include("validation1.inc");
$erreures=verif_form();
if($erreures!="")
{
echo $erreures;
include("form5.html");
exit;
}
ECHO "<h3>Control de la saisie dans les balises HTML</h3>";
echo "Bienvenue ".$_POST['civ']." ".htmlentities(ucfirst(strtolower($_POST['prenom'])))." ".htmlentities(strtoupper($_POST['nom']))."<br>";
echo "vous ête domicilié : ".htmlentities(strtolower($_POST['adresse']))."<br>".htmlentities($_POST['cp'])." ".htmlentities(strtoupper($_POST['ville']))."<br>";
echo "Votre N° de téléphone est : ".htmlentities($_POST['telephone'])."<br>";
echo "Votre adresse mél est : ".htmlentities(strtolower($_POST['courriel']))."<br><BR>";
echo "Vous avez choisi les cours principaux : <br>";
while (list ($clé,$value) = each ($_POST['cours']))
{
echo "$value<br>\n";
}
if(!empty($_POST['coursoption']))
{
echo "<br>Vous avez choisi les cours optionnels: <br>";
while (list ($clé,$value) = each ($_POST['coursoption']))
{
echo "$value<br>\n";
}
}
else
{
echo "Vous n'avez choisi aucun cours optionnel";
}
}
else
{
include("form5.html");
}
?>
Traité le : 28/08/2026 19:20:16