Hi,
I've got a shopping cart script and want to be able to remove individual items from the arrays that store the purchase data.
I've created a remove link:
<a href='$PHP_SELF?remove=1&i=$i'>Remove</a>
// remove item
if($remove)
{
unset($name[$i]);
unset($size[$i]);
unset($cost[$i]);
}
$i being the array key for the item. The unset doesn't work and i've tried array splice but that just deletes everything..
Please help.