I can't unset a session variable properly using a 'remove button' click. I have two pages: product page and shopping cart page, but problem is that I have a 'remove button' in the
Solution 1:
It might be caused by
$pid=$_SESSION['pid1']; instead of $pid=$_POST['pid1'];
event that is tied to tag wrapped around a button, you coud just use
Post a Comment for "Unset Session Variable On Button Click Event"