foreach($_SESSION["productList"] as $key => $value ){ //sepet.php?delete=<?=$key?> gönderirseniz kodunuz çalışacaktır. }