Hi all,

I didnt have much success with my last post, so i pushed on a bit.

I am trying to find out how to pass data from an iframe within a form, the a hidden field in that form itself (which would be on the parent document).

Im assuming i have to do this via java, but being a java novice im really quite stumped.

Ive searched high and low on google but have come up with nothing.

I have something similar to below.

<FORM enctype="multipart/form-data" method="post"
action="confirm.php name="formname">

Form Data in here - various inputs etc.

<iframe name="iframename" src="iframepage.php">
</iframe>
<input type="hidden" name="hiddeninput">
<INPUT type="submit" name="submit" value="Upload">
</form>

Within the iframepage.php file, there is a combo dropdown box. So im assuming it will need to be an "onchange" of some sort to populate the field "hiddeninput" on the parent document.

I hope someone out there can help me out with this. Or if not, perhaps point me in the direction of somewhere i can find some info to step me through it.

I appologize if im posting this in the wrong forum. I am unsure if it should be in a java forum or php.

Many thanx in advance.

Dave

    Bad Google, Bad!

    It should have offered you this link: http://www.hostultra.com/~data/muck/example.php

    Have a look at my example which simulates going to the database to get data. Instead of code being triggered by the page load you will need the onchange as you suggested.

    My fields are visible but there's no difference in syntax between a hidden and a text document.

    Sarah

      Write a Reply...