So what I am doing is trying to create a ‘favorite’ system. I want the user to click a button and the code on the page will submit a value into a MySQL Database. Does this need to the page need to reload if the only thing I am doing is submit and value. I am not pulling any information from the database on the button’s click. Thank you:)
Share
A great way to avoid the complexities of Ajax and cross-browser compatibility is to use Jquery!
In your non-reloading page, you can put this:
and in your handler php page (in this case called “handle.php”)
Jquery handles the Ajax request for you!