title: How to submit form on an external website and get generated HTML?
body: <p>I would like make a script using PHP (probably need JS) to send POST data to another webpage and get the result back.</p>
  
  <p>For example, Domain A will have a form with a textbox and submit button, and Domain B will have a script which will fill the textbox and press the submit button and return the generated HTML page.</p>