Page 1 sur 1

afficher ou cacher checkbox

Publié : lun. nov. 02, 2009 3:07 pm
par emmanuel7930
Bonjour,

J'ai un petit soucis. J'aimerais pouvoir afficher ou cacher une checkbox en fonction d'une condition, mais j'ai du mal a associé php et input

voici mon script

la partie ci dessous fonctionne et dit en gros, si il y a une image affiche la sinon affiche rien...

$photo2=$row_Recordset1['photo2'];
if($row_Recordset1['photo2']!=""){echo "<img src=\"images/petites_img/$photo2\" width=\"100\" height=\"120\" >";}
else{echo "";}?>

A ceci, je voudrais ajouter si il y a image affiche un : <input type="checkbox" name="select1" id="select1"> sinon non.

Qui à la solution ? merci