title: dynamically create HTML page from Javascript
body: <p>Is there a way to create a new HTML page from Javascript based on user inputs?</p>
  
  <p>I have a webpage that asks which input fields user wants, based on the selection it should create a new HTML page.</p>
  
  <p>i.e. If i select 3 textboxes and 1 button then it should <strong>create new HTML page</strong> with 3 textboxes and 1 button.</p>
  
  <p>how to do the same thing using PHP?</p>
  
  <p>edit: my objective is newly created page should also be saved on the server at the time of creation</p>