Skip to content
Advertisement

jQuery Ajax post to php not catching variable

What am i doing wrong. PHP doesn’t seem to catch title and wrapper from $.ajax. Does the code look correct. The success message i get indicate an error that title is not found.

jQuery main.html

JavaScript

PHP process.php

JavaScript

Advertisement

Answer

Take a look: jQuery.ajax()

The data parameter is better to be a Key/Value pairs object, it’s cleaner and easier to debug 🙂

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement