Bonjour,
voici mon problème: je n'arrive pas à garder la case de mon checkbox coché après validation.
voici mon code php, si quelquin à une idée

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
<form method='post'>
<input type='checkbox' name='toto[]' value='".number_format($piece_item['ttc'],2)."'>
<input style='margin-left: 575px' type='submit' name='toto[]' value='Valider'> 
</form>	";
 
<?php
$tot = 0;
foreach(($_POST['toto'] )as $key) { 
$tot += $key;
echo 'Choix utilisateur : '.$key.'<br />';
}
echo 'Valeur total : '.$tot;
?>