I have a Fundamental question in using Jquery with PHP when making ajax calls with respect to performance. Is it right to do a Get or a POST. Which is faster when using ajax calls. I know this question has got nothing to do with PHP though, but would like to understand the different view points.
All I am trying to do is to pass variables to PHP and echo data using jquery.
$.post('request.php',
{ param1: value, param2:value
}, function (data) {
container.html(data); }
if (isset($_POST['param1']) && isset($_POST['param2'])){
//Do some process on the server
echo "server processed data";
}
What is best to use in this case? A GET
or a POST