+ 2
How to post a comment without refreshing the page in PHP?
My form contains a textarea and a submit button pliz give me the code
3 ответов
+ 1
you can use this codes ...
https://code.sololearn.com/WnCfxScNL0hs/?ref=app
https://code.sololearn.com/wOgL2AfEGW8F/?ref=app
+ 1
Comments are basically stored in the database table. Now to save the new comments or comments reply, you can make use of jQuery AJAX method http://www.yogihosting.com/jquery-ajax/.
This method will not reload your page. You can call the php page which adds the comments on the database table.
In the same you can also fetch new comments from the database using jQuery Ajax method.
So there will be no page reloading anywhere.