J'ai un petit soucis avec smarty et mes champs checkboxes que voici :
Code : Tout sélectionner
<input type="checkbox" name="jaime[]" value="1" {if isset($smarty.post.jaime) && $smarty.post.jaime == '1'}checked="checked"{/if}/>les cactus <br />
<input type="checkbox" name="jaime[]" value="2" {if isset($smarty.post.jaime) && $smarty.post.jaime == '2'}checked="checked"{/if}/> la margarine<br />
<input type="checkbox" name="jaime[]" value="3" {if isset($smarty.post.jaime) && $smarty.post.jaime == '3'}checked="checked"{/if}/>les tabourets <br />
<input type="checkbox" name="jaime[]" value="4" {if isset($smarty.post.jaime) && $smarty.post.jaime == '4'}checked="checked"{/if}/>les meduses<br />
Cordialement,