HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

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

4,200 views November 3, 2018 9:05

Watch on YouTube
ChannelJunior Developer Central

Description from the creator

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

About this tutorial

Junior Developer Central published this 9:05 video tutorial on November 3, 2018. It has been watched 4,200 times on YouTube.

Category
Education
Duration
9:05
Published
November 3, 2018
Views
4,200
Likes
33

Tags

Share

This tutorial in other languages