How to make the button "Continue shopping"?

Please help
Need in the basket to make the button "Back to shopping". This button should return the visitor to that page, from which he moved in the basket, how to make a button like this? How to generate the desired link?
The engine-house
July 12th 19 at 17:03
2 answers
July 12th 19 at 17:05
Solution
Google REFERER:
echo $_SERVER["HTTP_REFERER"];
July 12th 19 at 17:07
Easier not in the recycle bin to do,and using pop-up when adding product to cart. Divide by 2 buttons like" go to basket" and "continue shopping"

Find more questions by tags Internet shopsPHP