Code : Tout sélectionner
<!DOCTYPE html>
Bonjour! J'ai ce code:
<html>
<head>
<title>Notre première instruction : echo</title>
<meta charset="utf-8" />
</head>
<body>
<h2>Affichage de texte avec PHP</h2>
<p>
<?php
$autorisation= NULL;
if ($autorisation == TRUE) {
include ("test_autorisations/true.php");
}
elseif ($autorisation == FALSE) {
include ("test_autorisations/false.php");
}
else {
echo 'Pas de valeur!';
}
echo '.<br />';
echo 'La valeur de la variable $autorisation est de ' . $autorisation . '.';
?>
</p>
</body>
</html>Merci à vous!