title: Node.js - POST to iFrame?
body: <p>So I have this site that I need to post some data to.  That site will be in an iFrame and the data that I'm posting is in my markup.</p>
  
  <pre><code>&lt;iframe src="www.externalsite.com/whatever.php" name="my_iframe"&gt;&lt;/iframe
  
  &lt;form id="my_form" target="my_iframe"&gt;
    &lt;input type="hidden" name="age" value="12"&gt;
    &lt;input type="hidden" name="name" value="bob"&gt;
  &lt;/form&gt;
  
  &lt;script&gt;
    $('#my_form').submit();
  &lt;/script&gt;
  </code></pre>
  
  <p>I have a route that renders this page in node like this: </p>
  
  <pre><code>app.get('/age_page', function() {
    res.render('age_page.html', res);
  });
  </code></pre>
  
  <p>What is the correct way to send the data from my_form to the iframe so it renders the correct content inside my iframe?  The iframe is just going to consume that data and store it in a database.</p>