Hi Guys!
In this video you will learn how to call a PHP file with Ajax from a HTML file. I will send form data from a HTML file through Ajax to a server side PHP file and store the data into database. Here I have used jQuery Ajax to call the PHP API file. Both client side ad server side validation applied. Client side validation applied before calling the Ajax to avoid unnecessary Ajax call and server side validation applied before database change to avoid illegal database change by violating the validating condition.
Create database table and submit form with php (get and post method explained): https://www.youtube.com/watch?v=7DmH4NYSg9E
Get the code here: https://github.com/anindya38653/phptutorial/tree/master/ajaxform