hi,
if ($_POST['anzahl'][$key] == 0)
Darum herum ist also noch eine Schleife?
foreach($_POST['anzahl'] as $key => $value)
{
unset($_POST['anzahl'][$key],$_POST['item_id'][$key],$_POST['einzelpreis'][$key]);
Du willst nur die Elemente löschen, deren Anzahl 0 ist - hier machst du die Schleife aber über alle.
Wie wär's mal andersherum?
Schleife über alle, prüfen ob Anzahl gleich 0, dann (und nur dann) löschen ...
gruß,
wahsaga
--
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }