title: Getting all data from php page and send them to another page when using window.open() in javascript
body: <p>I have a website that is already built, and I'm making a change request on it, when pressing on print icon, the page opens another page called print.php using javascript 
          window.open()
  The problem is that I want when opening the print.php page which includes the same page to be printed, to take the data in input elements and fill it with these data in print.php page,
  Now the print page appears to be empty inputs, how to do that?</p>