".$_POST['qte']."
";
$id=$_POST['id'];
$qte=$_POST['qte'];
if( empty($_SESSION['panier'][$id]) ){
$_SESSION['panier'][$id]=$qte;
}else{
$_SESSION['panier'][$id]+=$qte;
}
?>
}
//Nous allons supprimer une ou + ligne(s) de commande
if(isset($_POST['action']) and $_POST['action']=='Eliminer'){
if(empty($_POST['case']) ){
?>
exit;
}
foreach ($_POST['case'] as $delete){
unset($_SESSION['panier'][$delete]);
}//fin foreach
?>
exit;
}//fin delete
// nous allons changer une comande : Etape 1 ==> l'affichage
if(isset($_POST['action']) and $_POST['action']=='Changer'){
if(empty($_POST['case']) ){
?>
exit;
}
?>