$.post('phppage.php', { url: url }, function(data) { document.getElementById('somediv').innerHTML = data; });