# Iframes and form data

**URL:** <https://forum.kirupa.com/t/iframes-and-form-data/183025>\
**Category:** programming\
**Created:** [March 23, 2006, 6:00am UTC](https://forum.kirupa.com/t/iframes-and-form-data/183025 "2006-03-23T06:00:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SlowRoasted](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@SlowRoasted](https://forum.kirupa.com/u/SlowRoasted)\
**Post date:** [March 23, 2006, 6:00am UTC](https://forum.kirupa.com/t/iframes-and-form-data/183025/1 "2006-03-23T06:00:43Z")

</div>

Okay so there is a site that has an Iframe with a contact form in it. I need to send an email with the data in it in PHP. I’m guessing that I use the target"\_parent" in the form tag, but I don’t seem to have access tot he variables in the Iframe so that I can display a confirmation message instead of the form.

---

<div class="post-metadata">

**Author:** ![SlowRoasted](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@SlowRoasted](https://forum.kirupa.com/u/SlowRoasted)\
**Post date:** [March 23, 2006, 6:04am UTC](https://forum.kirupa.com/t/iframes-and-form-data/183025/2 "2006-03-23T06:04:27Z")

</div>

I was thinking maybe the easiest route would be to make a flash contact form?

---

<div class="post-metadata">

**Author:** ![SlowRoasted](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@SlowRoasted](https://forum.kirupa.com/u/SlowRoasted)\
**Post date:** [March 23, 2006, 5:54pm UTC](https://forum.kirupa.com/t/iframes-and-form-data/183025/3 "2006-03-23T17:54:57Z")

</div>

I figured it out. I have to put the get variables in the src of the the iframe tag as well. fixed the problem.
