$('div#results').load('/loadresults.php?action=last');
$.ajax({
url: '/loadresults.php',
type: 'POST',
data: { name: $('input[name=login]').val(), password: $('input[name=password').val() },
success: function(result) {
$('div#results').html(result);
}
});