How do I see the output of data sent by JQuery to php?
<p>I have this JQuery piece of code. I want to see wht php outputs. How do I print that. </p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;script src="http://code.jquery.com/jquery-latest.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;script&gt;
$.ajax({
     url: "script.php",
     type: "POST",
     data: { name : "John Doe" },
     dataType: 'json',
     success: function(msg){
     alert(msg);
     }
});
&lt;/script&gt;
&lt;HTML&gt;
</code></pre>

<p>script.php</p>

<pre><code>&lt;?php
$name = $_POST['name'];
echo $name;
?&gt;
</code></pre>
