par
CrY94 » 23 sept. 2005, 18:01
Bonjours a tous
Voici mon probleme
je souhaite faire une boucle qui affiche 15 image a partir de celle choisie.
seulement j'ai des problemes avec echo
voici le php interessé:
<?php
if (!isset($_GET['page'])){ $_page = 0;}
else {$_page = $_GET['page'];}
$_page_totales_a_afficher = ($_page + 15);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<title>Rallye</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" type="text/css" title="rallye" href="rallye.css" />
</head>
<body>
<center>
<h1> Rallye Mania </h1>
<div id="warning">
<p>
Toutes les photos ne sont pas présentes.
<br/><br/>
Elles sont converties en 600*450 pour un gain de place.
<br/><br/>
Les images "source" font 2592*1944<br/>
</p>
</div>
</center>
<div id="choixphoto">
<form method="post" action="choix.php">
<fieldset>
<legend> Voir les photos :</legend><br/>
<input type="radio" name="photo" value="0" tabindex="10"/>0 à 15<br/>
<input type="radio" name="photo" value="15" tabindex="20"/>15 à 30<br/>
<input type="radio" name="photo" value="30" tabindex="30"/>30 à 45<br/>
<input type="radio" name="photo" value="45" tabindex="40"/>45 à 60<br/>
<input type="radio" name="photo" value="60" tabindex="50"/>60 à 75<br/>
<input type="radio" name="photo" value="75" tabindex="60"/>75 à 90<br/>
<input type="radio" name="photo" value="90" tabindex="70"/>90 à 105<br/>
<input type="radio" name="photo" value="105" tabindex="80"/>105 à 120<br/>
<input type="radio" name="photo" value="120" tabindex="90"/>120 à 135<br/>
<input type="radio" name="photo" value="135" tabindex="100"/>135 à 150<br/>
<input type="radio" name="photo" value="150" tabindex="110"/>150 à 175<br/>
<input type="radio" name="photo" value="175" tabindex="120"/>175 à 190<br/>
<input type="radio" name="photo" value="190" tabindex="130"/>190 à 205<br/>
<input type="radio" name="photo" value="205" tabindex="140"/>205 à 220<br/>
<input type="radio" name="photo" value="220" tabindex="150"/>220 à 227<br/>
<br/>
<br/><center>
<input type="submit" value="afficher"/>
</center>
</fieldset>
</form>
</div>
<div id="photo">
<?php
for ($_page_a_afficher = $_page; $_page_a_afficher <= $_page_totales_a_afficher; $_page_totales_a_afficher++; )
{
}
</div>
</body>
</html>
Seulemement dans ma boucle je veux faire un echo suivant :
echo "<br/>";
echo "<img src="images/image ("$_page_a_afficher").jpg" alt="image n°"$_page_totales_a_afficher"" />" ;
Je ne vois pas comment faire
merci de vos futures reponses.