This is my code:
<?php
//for reference
$intqty = (int) $_POST["qty_input"];
(int)$_SESSION['cart_qty'] += $intqty;
?>
The $_POST['qty']
is a string and I'm trying to add and store the values in a session variable and its not working. The output of when I echo $_SESSION['cart_qty'];
is 0;