I am just starting to learn PHP. I am developing a shopping cart. I have Add to Cart buttons on each of my product pages and I can launch the shopping cart in a new browser tab.
The HTML for the Add to Cart button is here :
Now if I want to add a second instance of this product, or even add a new product from another web page to the cart, I naturally get a new tab again (due to the target="_blank" attribute of the form) with the new product added. But I don’t want to get a new shopping cart tab every time I add something to it, I want the original shopping cart tab to be updated.
So somehow I need to pass data from the other product web page Add to Cart button to the server but have the server send the resulting shopping cart page to the already open shopping cart.
How can I do this?
PayPal does this somehow but I do not have enough web programming experience to figure out how it is done.
Thanks very much.