title: HTTP POST/GET request to PHP script and JSON response
body: <p>I have pages that send POST/GET requests to PHP scripts on the server. All PHP scripts respond in JSON. Question is how to capture the JSON response at the client-side in JavaScript.</p>
  
  <p>Example : when i submit the form register.html, i want to capture and manipulate (using Javascript) the JSON response returned from <a href="http://localhost/register.php" rel="nofollow">http://localhost/register.php</a>. </p>