I have seen different types of jQuery AJAX call with type:'GET'
and type:'POST'
with PHP Mysqli Programming but i have doubt :-
So when and Where we used these two different type , i mean in which scenario we are use type:'GET'
and type:'POST'
with PHP Mysqli like these:-
Is there any technical difference between both of them?
type:"GET"
$.ajax({
type:"GET",
url:"action.php",
data:{key:val},
success:function(data){
alert(data);
}
});
type:"POST"
$.ajax({
type:"POST",
url:"action.php",
data:{key:val},
success:function(data){
alert(data);
}
});