Howdy all,
I'm buliding a simple shopping cart using sessions, and have run into a problem...
I have put the usual 'add to cart' button on the product page, and this links to the basket page with 'action=add' and the product code in the url.
eg - basket.php?action=add&product code=123456
...using if($action=="add"){ etc.
This works fine,
BUT
if I refresh the page it adds another product to the cart.
Also when I delete a product it works fine (using 'action=delete' in the url, and an IF clause in the page - if($action=="delete"){ unset $_SESSION variable etc.
BUT
when I use the back button on the browser the product shows up again!
Can anyone help? 😕 😕 😕
Thanks,
Moggy