# Iframe form data transfer

**URL:** <https://forum.kirupa.com/t/iframe-form-data-transfer/208441>\
**Category:** Uncategorized\
**Created:** [November 28, 2006, 8:03pm UTC](https://forum.kirupa.com/t/iframe-form-data-transfer/208441 "2006-11-28T20:03:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sigepmest37](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sigepmest37](https://forum.kirupa.com/u/sigepmest37)\
**Post date:** [November 28, 2006, 8:03pm UTC](https://forum.kirupa.com/t/iframe-form-data-transfer/208441/1 "2006-11-28T20:03:48Z")

</div>

I’m new to iframes and ajax but here is what I am trying to do.

I have a form on my parent page where the user is finding a file to upload. I also have an invisible iframe with the dame form field by a different name.

Parent Input:

```auto
<input type="file" id="ghost" name="ghost" onChange="javascript: ghost_change();">

```

ifame “invis” form:

```auto
<form name="upload" action="imageupload.php" method="post" enctype="multipart/form-data">
<input type="file" id="image" name="image">
</form>

```

I need the data that is in the parent input field to be transfered to the iframe field onchange.

Can it be done, and how?

thanks
