jQuery POST PHP Tutorial: Submit form data to a back-end script with AJAX

preview_player
Показать описание
In this jQuery POST PHP Tutorial you'll learn about how to use jQuery to send data from a web form or other source to a back end PHP script via an AJAX request.

Normally when a user on your web site submits a HTML form, the data is collected and sent to a back end script or API for processing. This is fine however the page is reloaded when this happens or at the least you're redirected to the URL that is passed in to the form as it's action.

A better way is to use a jQuery POST PHP request to send the data via AJAX so that the page does not have to reload thereby providing a more seamless user experience.

In this jQuery POST PHP Tutorial you'll learn about the jQuery convenience function that allows you to send a POST request without reloading the page. You'll also see how the data is handled in the back-end PHP script and how to retrieve the POSTed data. You will see how to return a response from the script.

A jQuery POST PHP combination is a classic example of getting user input data and sending it to a back end server-side script. This is where generally the processing occurs, for example a login call might be made referencing the database or perhaps some data validation or some other task.

By the end of this tutorial you will understand how to load jQuery into your web app and also send a POST request with a payload of data for the server. Channel Handle @codebubb
Рекомендации по теме
Комментарии
Автор

There is no link in the description for the syntax u used 😭 => but good video ! V informative !

simonebamber
Автор

I'm trying the same with VSCode Live Server extension but it doesn't work

mdmathewdc
visit shbcf.ru