This is a little bit confusing. I am trying to submit a url to an iframe on the same page. When I click submit, the iframe duplicates the current page, but the correct url is in the replicated iframe. I wonder if it goes on forever? The page that this is happening is http://www.4mobilesites.com and the code is below.
<div class="mobile-logo">
<H2>How does your website look on a Mobile Device?</h2>
<?php
$keyurl = $_POST['siteurl'];
?>
<form method="post" target="mobileframe" >
Enter your website's URL: <input type="text" name="siteurl" value="http://" size="50"><br>
<input type="submit" value="VIEW">
</form><br>
<a name="iframe-1"></a>
<div class="theiframewrap"><iframe name="mobileframe" class="theiframeid" src="<?php echo "$keyurl"; ?>" id="mobileframe"></iframe></div></div>
If you submit a url in the form, then scroll down a bit in the iframe and squint, you will see the correct url in the iframe of the iframe.