title: how do I process dynamically generated javascript code with PHP and send the result as an email?
body: <p><strong>this is the javascript code</strong></p>
  
  <pre><code>$(function () {
      var scntDiv = $('#p_scents');
      var i = $('#p_scents p').size() + 1;
  
      $('#addScnt').live('click', function () {
          $('&lt;p&gt;&lt;label for="p_scnts"&gt;&lt;input type="text" id="p_scnt" size="20" name="p_scnt_' + i + '" value="" placeholder="Input Value" /&gt;&lt;/label&gt; &lt;a href="#" id="remScnt"&gt;Remove&lt;/a&gt;&lt;/p&gt;').appendTo(scntDiv);
          i++;
          return false;
      });
  
      $('#remScnt').live('click', function () {
          if (i &gt; 2) {
              $(this).parents('p').remove();
              i--;
          }
          return false;
      });
  });
  </code></pre>
  
  <p><strong>this is the html code</strong></p>
  
  <pre><code>&lt;h2&gt;&lt;a href="#" id="addScnt"&gt;Add Another Input Box&lt;/a&gt;&lt;/h2&gt;
  
  &lt;div id="p_scents"&gt;
      &lt;p&gt;
          &lt;label for="p_scnts"&gt;
              &lt;input type="text" id="p_scnt" size="20" name="p_scnt" value="" placeholder="Input Value" /&gt;
          &lt;/label&gt;
      &lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>i'm trying to collect all the inputs generated and process them with php</p>