title: double iframe problem
body: <p>I have a page with 2 iframes, that consists of 3 files. The second iframe has one form inside, like this:</p>
  
  <p>Page where user access(http://domain1.com/index.html):</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;iframe name="ifr1" src="http://domain2.com/index.html" width="800" height="1000" scrolling="no"&gt;
      &lt;/iframe&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Page of domain2.com/index.html</p>
  
  <pre><code> &lt;html&gt;
   &lt;head&gt;
   &lt;/head&gt;
   &lt;body&gt;
   &lt;iframe name="ifr2" src="http://domain3.com/form.html" width="400" height="400" scrolling="no"&gt;
      &lt;/iframe&gt;
   &lt;/body&gt;
   &lt;/html&gt;
  </code></pre>
  
  <p>Page of domain3.com/form.html</p>
  
  <pre><code> &lt;html&gt;
   &lt;head&gt;
   &lt;/head&gt;
   &lt;body&gt;
   &lt;form method='post' action='http://domain3.com/check.php' target='_parent' id='cform'&gt;
      &lt;input type="text" name="inp1"&gt;
      &lt;input type="submit" value="send"&gt;
   &lt;/form&gt;
   &lt;/body&gt;
   &lt;/html&gt;
  </code></pre>
  
  <p>So, when user accesses to domain1.com/index.html, the result html becomes:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;iframe name="ifr1" src="http://domain2.com/index.html" width="800" height="1000" scrolling="no"&gt;
          &lt;html&gt;
          &lt;head&gt;
          &lt;/head&gt;
          &lt;body&gt;
          &lt;iframe name="ifr2" src="http://domain3.com/form.html" width="400" height="400" scrolling="no"&gt;
               &lt;html&gt;
               &lt;head&gt;
               &lt;/head&gt;
               &lt;body&gt;
               &lt;form method='post' action='http://domain3.com/check.php' target='_parent' id='cform'&gt;
                   &lt;input type="text" name="inp1"&gt;
                   &lt;input type="submit" value="send"&gt;
               &lt;/form&gt;
               &lt;/body&gt;
               &lt;/html&gt;
          &lt;/iframe&gt;
          &lt;/body&gt;
          &lt;/html&gt;
      &lt;/iframe&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When the user submits the form, i want to load the <a href="http://domain3.com/check.php" rel="nofollow">http://domain3.com/check.php</a> content in the iframe named ifr1, but when the form is submitted, it loads the check.php content in a new window/tab.</p>
  
  <p>I changed the domain of check.php and I copied it in domain2 to check if it works, and it does. Does it mean that is wrong to send a form content to a different domain? Does someone have any idea about it?</p>
  
  <p>Thanks a lot! : )</p>