title: Submit html form to PDF without database
body: <p>Without a database support can I directly convert an HTML form into a PDF file when someone submits their data.
  The given below is my current status.
  If I have div with id myform</p>
  
  <pre><code>&lt;div id="myform"&gt;
      &lt;h1&gt;My form&lt;/h1&gt;
      &lt;form action=" " method="post"&gt;
          &lt;input type="text" name="first_name"&gt;
          &lt;input type="text" name="last_name"&gt;
          &lt;input type="submit" value="submit"&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Grab form html code.</p>
  
  <pre><code>var form = $("#myform").html();
  </code></pre>
  
  <p>But the variable <em>form</em> will not contain any user data with <em>value</em> attributes</p>
  
  <p>My expected output is.</p>
  
  <pre><code>&lt;h1&gt;My form&lt;/h1&gt;
  &lt;form action="" method="post"&gt;
      &lt;input type="text" name="first_name" value="some-userdata-entered-just-now"&gt;
      &lt;input type="text" name="last_name" value ="some-userdata-entered-just-now"&gt;
      &lt;input type="submit" value="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I am planning to put this HTML into dompdf for generate a PDF file.
  Is there any way? Please help.</p>