Currently I am working on mobile web application using Phone gap.. here, I am passing data between client (HTML page in mobile) and server (php in server) using GET method ... now everything is working fine but when i try to change it to POST it is not working.....! what might be the problem..
Client side :
$.ajax({ url:'xxx?callback=?', data:{userId:id}, dataType:'jsonp', type:'POST', success:function(output){ alert(output); }});
Server side : I am using $_POST['id'];
Thanks in advance.
$_GETand change it to$_POST. Do show your full code, PHP especially.