0) foreach($_POST['amount'] as $k=>$v) { if(ctype_digit($v)&&$v>0) { $_SESSION['bag'][$k]=$v; } } } if(isset($page) && $page=="cart" && isset($delitem)) { unset($_SESSION['bag']["$delitem"]); header("Location: index.php?page=cart"); } if(isset($page) && $page=="cart" && isset($clearall)) { $_SESSION['bag']=array(); header("Location: index.php?page=cart"); } include "title.php"; ?> خرجبح :: <?=htmlspecialchars($title)?><? if(isset($title2)) echo " > ", htmlspecialchars($title2) ?><? if(isset($title3)) echo " > ", htmlspecialchars($title3) ?><? if(isset($title4)) echo " > ", htmlspecialchars($title4) ?><? if(isset($title5)) echo " > ", htmlspecialchars($title5) ?> id="mb">echo "";echo "";