title: how to save page-html with input values given, into variable on submit
body: <p>I am generating a report for which i need html of form with input values also. I am saving the form(page's HTML) with inputs given to the form into a variable. But when i save it the inputs are not coming into it. </p>
  
  <p>How to save the values into it?</p>
  
  <p><strong>HTML :</strong></p>
  
  <pre><code>        &lt;form method="POST" action="&lt;?php echo BASE_URL . 'php/processing/formInput/formDataInputProcesing.php?id=' . $_GET['id']; ?&gt;" &gt;
          &lt;div id="formHtml"&gt;
          &lt;?php echo $formHtml; ?&gt;            
          &lt;hr&gt;
          &lt;/div&gt;
          &lt;input type="hidden" value="" id="formHtmlValue" name="hiddenvalue" &gt;
          &lt;div class="text-center"&gt;
              &lt;button type="submit" class="btn btn-info" name="submitData" id="submitData"&gt;&lt;i class="fa fa-check"&gt;Submit&lt;/button&gt;
          &lt;/div&gt;
          &lt;hr&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p><strong>Javascript/JQuery :</strong></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
          $('#submitData').click(function(){
              var html = $('#formHtml').html();
              $('#formHtmlValue').val(html);
          });
      &lt;/script&gt;
  </code></pre>