Skip to content

Commit

Permalink
Inistial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
yuehong committed Mar 11, 2014
0 parents commit a0965cd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Empty file added New Text Document.txt
Empty file.
16 changes: 16 additions & 0 deletions cart_delete_process.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
session_start();

$productID = $_POST['id'];
$itemArray = $_SESSION['itemcart'];
$tempArray = array();

foreach($itemArray as $item)
{
if($item['id'] != $productID)
$tempArray[] = $item;
}

$_SESSION['itemcart'] = $tempArray;
echo "success";
?>

0 comments on commit a0965cd

Please sign in to comment.