Include qui ne s'affiche pas

silling -  
 silling -
Bonjour,
j'ai fais une include de mon entête sur ma page index mais ça n'affiche rien

index_page.html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<link href="style.css" rel="stylesheet" type="text/css" />
<title>index</title>
</head>

<body>
<?php include ("entete.html"); ?>
</body>
</html>


entete.html:
<div id="top"></div>
<div id="menu">
	<ul>
			<li><a href="index_page.php">Accueil</a></li>
			<li><a href="moncompte.php">Mon compte</a></li>
			<li><a href="QSN.php">qui sommes nous</a></li>
			<li><a href="aide.php">aide</a></li>
            <li><a href="faq.php">faq</a></li>
            <li><a href="contact.php">contact</a></li>
		</ul>

		</div>

style.css:
@charset "utf-8";
/* CSS Document */
body {
	width:100%;
	margin: 0 auto;
	background-color: #FFF;
	font-size: 14px;
}
h1, h2, h3, h4 {
	margin: 0;
	padding: 0;
	color: #C00;
}

img {
	border: 0
}

.hide {
	display:none;
}
a {
	text-decoration:none;
}
p{
	color:#FFF;
}
/* haut de page*/

#top {
	width:296px;
	height:89px;
	background:url(images/vertafermelogo.png) no-repeat top;
	border:0px;
}
#menu {
	width:100%;
	height:20px;
	background-color:#5a9e0b;
	padding-left:276px;
	
}
#menu ul li{
	list-style:none;
	float:left;
	margin-right:20px;
}

#menu ul li a{
	color:#FFF;
	font-style:bold;
	cursor:pointer;
}

#menu ul li a:hover{
	color:#900;
}

normalement je devrais voir un menu en haut de la page mais là, la page et vide, rien ne s'affiche.
je ne vois pas ou est le problème.
d'avance merci

4 réponses

maryon-tlse Messages postés 30 Statut Membre 1
 
Ta page doit avoir une extension .php, il ne faut pas que ce soit .html
renomme ta page en index_page.php

Maryon

---------------------------------
0
silling
 
en extension .php ça ne s'affiche toujours pas. je comprend vraiment pas là, je dois avoir un bug quelque part.
0
maryon-tlse Messages postés 30 Statut Membre 1
 
t'a le lien en ligne?
0
silling
 
non pardon j'ai oublié de dire que c'était en local avec wamp
0