This is a simple example on how to submit HTML form data and display the response with PHP, without reloading the page (ajax request).
I will do it with the help of jquery javascript library. First step is to make sure jquery is loaded. If your document already uses jquery for something else, there is no need to include it again. Continue reading