I have a previous article on how to use JQuery Mobile (and PHP) to submit some data via AJAX. With a little modification you can take that code and make it so you can submit an entire form. Today I’ll show you how to do that.
The PHP page is very simple and will listen for two incoming fields.
File name: callajax.php
The HTML5 page takes two values (first name and last name) and uses JQuery AJAX to send those serialized fields to the PHP page mentioned above. The results are then displayed.
File name: index.php
Submit a form via AJAX