$(document).ready(function()
{
$(":input").focusout(function () {
var a= $(this).closest("tr").attr('id');
var b= $(this).closest("td").attr('id');
var data = $(this).attr("value");
$.post("database.php",
{trAdress: a, tdAdress: b }, function(data){ alert("Data Loaded: " + data); }); });});
I want to pass trAdress and tdAdress also data parameters to a php document… Can anyone help me how can I get these parameters in a php document_?
If you sent them using POST, you can access the values sent in the form using
$_POSTsuperglobal variable:http://php.net/manual/en/reserved.variables.post.php