83
rated 0 times
[
87]
[
4]
/ answers: 1 / hits: 61142
/ 12 Years ago, thu, february 28, 2013, 12:00:00
I want to alert the return value from a php method, but nothing happens. Here is the ajax and php methods. Can anyone see what I am doing wrong?
--------------------------------------…
Ajax script
$.ajax({
type: 'get',
url: '/donation/junk/4',
data: datastring,
success: function(data) {
alert(data');
}
});
--------------------------------------…
php method
function junk($id)
{
return works11;
}
More From » php