Page 1 sur 1

attribuer une variable à background??

Posté : 01 janv. 2008, 18:44
par chris51200
Bnjour a tous,
comment peut on attribuer une variable à un background en php????
un truc du style
background = <?php echo '<img src="image page/'.$donnees['fond'].'"';?>
merci de votre aide

Posté : 01 janv. 2008, 19:02
par Berzemus
Tu dois te diriger vers le css alors.

genre:
<body style="background-image:url(<?php echo $fond ?>);">
<!-- des trucs -->
</body>

Posté : 01 janv. 2008, 19:28
par chris51200
ça y est j'ai trouve!
merci