For example, if you click the Put Cart button on the web, the value should go into the database Is there any other way to go back to the main after going through php to put the data into the shopping basket db by pressing the button on the main?
(main.html -> addCart.php -> main.html)
I don't want to see it because it's going through an empty page once, is there a way to take care of it directly from the main?
javascript php web
Ajax allows you to call addCart.php right there
If you search jquery ajax on Google, there are many examples, so please refer to it
© 2024 OneMinuteCode. All rights reserved.