Checking if a button was pressed in previous page in
Hi , I am pretty new to php. I am making my first project that is a shopping website. Problem I face is in my view cart page. I have created only one page for viewing cart and adding a product to cart and then viewing it.
I mean I want my code to check if add to cart button was pressed in product.php then add insert and show otherwise just show table data. I am able to do these individually but not both at same time in same page. Is there a way or shall I create two different pages.
5 Months Ago
Related Article:Return to the previous page