Sending data to php function from ajax
Posted
by
Faryal Khan
on Stack Overflow
See other posts from Stack Overflow
or by Faryal Khan
Published on 2012-03-29T11:12:25Z
Indexed on
2012/03/29
11:29 UTC
Read the original article
Hit count: 227
php
I am using an ajax call which is as follows
var ID=$(this).attr('id');
var input=$("#input_"+ID).val();
var dataString = {id: ID, value: input};
$("#span_"+ID).html(input);
if(input.length>0)
{
$.ajax({
type: "POST",
url: "/apps/worker_app.php",
data: dataString,
cache: false,
success: function(html)
{
$("#span_"+ID).html(span);
}
});
}
How can I get the data in my php function edit_ajax() which is inside worker_app I use post but the array come to be empty
Thanks
© Stack Overflow or respective owner