2021. 9. 23. · In this post, you'll learn Vanilla JS (JavaScript) form submit using PHP. When a form is submitted, you would like to execute simply a JavaScript function rather than reloading the webpage. We will not use the jQuery library in this tutorial; instead, we will communicate with the server or PHP using pure JavaScript and the XMLHttpRequest object.