title: How to redirect a json response from one php page to another?
body: <p>The scenario is as follows: There are two php pages named page1.php and page2.php.onClick of a button in page3.php a ajax request is sent to page1.php. I have to redirect this request to page2.php where the processing takes places. Now I need to get the processed data in page1.php and convert it to json and send the json response to page3.php. So page1.php acts like an intermediate page for the communication between page3.php and page2.php.</p>
  
  <p>If I use header("Location:page2.php") in page1.php then I cannot get the processed data from page2.php.(As I need the processed data in page1.php)
  Please suggest how this can be done?</p>