huntrguy102 Posted February 22, 2010 Share Posted February 22, 2010 I have a search engine for books on my website. I have it so they can search and book and then at it to a cart. When they click add to cart, it sends then to the cart page. I was wondering if there was a way to make it so I could send them back to the previous page they were at with a link, such as "Back to search Results"? Do you need a little bit more information to answer this question or is it good enough? Thanks. Link to comment https://forums.phpfreaks.com/topic/192990-using-data-from-one-php-page-to-another/ Share on other sites More sharing options...
mapleleaf Posted February 22, 2010 Share Posted February 22, 2010 You can use javascript: <a href="#" onClick="history.go(-1)">Back</a> <input type=button value="Back" onClick="history.go(-1)"> Link to comment https://forums.phpfreaks.com/topic/192990-using-data-from-one-php-page-to-another/#findComment-1016360 Share on other sites More sharing options...
huntrguy102 Posted February 23, 2010 Author Share Posted February 23, 2010 thanks you very much. This worked perfectly Link to comment https://forums.phpfreaks.com/topic/192990-using-data-from-one-php-page-to-another/#findComment-1016835 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.