You do not output the returned data from AJAX, and you do not use the tool to view it. Perhaps you expect var dumps to appear on the page. They will not, they will be returned to the function of success, where you can use the data as you see fit.
jQuery The AJAX method will pass the output from your PHP file to the 'ret' variable inside the success function. For example, if you want to return an HTML success message, you can add this HTML to the page without refreshing it. Or any of a million things.
You must read AJAX.
Change this:
$.ajax({ type: "POST", url: "http://www.vectorcreditsolution.com/js/process.php", data: dataString, success: function() { alert("Yay it was sent"); } });
To that:
$.ajax({ type: "POST", url: "http://www.vectorcreditsolution.com/js/process.php", data: dataString, success: function(ret) { alert(ret); } });
And then click the button on the page using jQuery.
Do not combine this with the other answers on this page. One of them is going to change your array keys to you (serialize).
source share