<script language=javascript src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$.ajax({
type: "POST",
url:"hello.php",
dataType:'json',
data:{"sitename":"phpjx","url":"http://www.phpjx.com"},
success:function(data){
alert(data.sitename);
alert(data.url);
}
});
})
</script>
apache232:8088
hello.php
<?php
$post=$_POST;
print_R(json_encode($post));