Вот пример для отправки текста на удаленный сервер.
И вы можете напечатать javascript на удаленном сервере, если вы хотите изменить страницу, на которой есть Iframe, чтобы сказать что-то вроде успеха. Или всплывающее окно, говорящее, что это закончено. На удаленном сервере вы можете распечатать это, чтобы сделать всплывающее окно:
<script> parent.document.getElementById('postmessage').style.display='block'; parent.alert('Successfully posted');</script>
На веб-странице вы хотите отправить информацию из формы и подобного Iframe.
<span id="postmessage" style="display:none">Success Message</span>
<form action="http://www.remoteserver.com/upload_test.php" method="post" target="post_to_iframe">
<input type="hidden" value="the text to send to remote server" />
<input type="submit" value="Submit" />
</form>
<!-- When you submit the form it will submit to this iFrame without refreshing the page and it will make the popup and display the message. -->
<iframe name="post_to_iframe" style="width: 600px; height: 500px;"></iframe>