Take the 2-minute tour ×

I have a PHP page with IFrame, the iframe's source is another domain and the user needs to fill out the form inside that frame. I need to write the content the user is submitting into the IFrame into my php page somehow so the users won't need to write the same things twice.

I've searched on the internet, but no success. I know this is somewhat security related, but I really need to do it, one way or another, so please point me out to some links where I can find something useful.

I was thinking something like a proxy, and before the iframe content is being submitted to the source, the data will pass through the proxy and this way I can save it...Or maybe that's not possible, I am not sure. That's why I need your help. I can't disclose any code but I can provide some examples if you need them that much, I just think it won't be necessary since I provided a good explanation of what I need.

Thanks a lot in advance.

share|improve this question
if iframe is on another domain, i don't believe it is possible. –  i-- Aug 26 '12 at 20:12
any workarounds then ? THe main idea is not to bother the users to fill the same form twice and copying it on my site is just too lame for me. –  Antonio Lazeski Aug 26 '12 at 20:14
one way is to write your own PHP that submits the form to that remote page. lame, agree. I can't think of anything easier. wonder if somebody else does –  i-- Aug 26 '12 at 20:15
there area few alternatives, but what's the big picture? what's in the iframe? what are the 2 sites? what is the submitted data? –  Dagon Aug 26 '12 at 20:16
Is the site in the iframe under your control at all? What access do you get to the data submitted in that form? –  DisgruntledGoat Aug 26 '12 at 20:17
add comment


Your Answer



Browse other questions tagged or ask your own question.