afficher du code html sans l'interprêter
Bonjour,
mon problème est dans le titre.
Je croyais faire ce qu'il fallait, mais si le code est binterprêté ; je voudrais donc savoir ce qui ne va pas.
Mon code :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <?php $code='
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>annonce</title>
</head>
<body>
<form action="traitrequete.php" method="post">
<table>
<tbody>
<tr>
<td colspan="2">Texte de la requête</td>
</tr>
<tr>
<td colspan="2"> <textarea name="requete"
rows="4" cols="55"></textarea></td>
</tr>
</tbody>
</table>
<br>
<br>
<center><input name="submit" value="Exécuter"
type="submit"></center>
</form>
</body>
</html>';
echo html_entity_decode(htmlentities($code));
?> |