So I'm working on a site and I am setting up a register system, and I want the site to take all of the current POST
data (after the request was made)
and send the current POST
data in an AJAX
call, like:
$.post('/api/post', {
"type":"register",
"pdata":POST_DATA
}, function(data){
alert(data);
});
And have the PHP Backend
be able to take in the $_POST['pdata']
and use that as the data it's going to use, just to make the transfer safer and easier.