HTML.form.guide

submit form

How to submit a form without reloading the page using PHP

PHP is a server-side scripting language. You can’t use PHP to affect the behaviour on the client side (browser). To handle form submission on the client side, you need Javascript. Here is how you can submit a form without refreshing the page: Handle the form “submit” event using a bit of Javascript code. The form “submit” event is fired by the browser when the user clicks the submit button in the form.

Continue Reading →