Need Help w/ iframe and TARGET _parent
Posted: Sat May 23, 2009 3:32 pm
I am not a programmer, nor am I looking to become one in the near future but I am having an issue using an iframe for a CoffeeCup Form Builder form used within WordPress 2.7.1. I have already posed this question to both CoffeeCup and WordPress forums and have not received any answer. I have searched this forum and on Google and am not finding anything to answer my question.
I am using a plugin - Secure and Accessible PHP Contact Form v.2.0 - for my basic contact form on WP, but needed a more extensive form to use as a training program application so I turned to CoffeeCup. I have no issue getting it onto my site using iframe.
My site:
http://cornerstonecoachacademy.com/life ... plication/
My code:
Now my issue is that once you hit submit it takes you to the Thank you page within the iframe. Not what I want to do.
The code within the CC two files that call unto that Thank you page are...
The myform.php:
The myform.xml:
What I would like to do is have the new page, the Thank You page, open up in the outer frame, instead of within the iframe. I am assuming I would want to do a target="_parent" but am unsure how to do this or if I can do within the php, which is where I assume the call needs to be made. (Please excuse anything obviously newbie here)
Can you add a target to the php? I do not want to have my page open within the inner frame.
I am using a plugin - Secure and Accessible PHP Contact Form v.2.0 - for my basic contact form on WP, but needed a more extensive form to use as a training program application so I turned to CoffeeCup. I have no issue getting it onto my site using iframe.
My site:
http://cornerstonecoachacademy.com/life ... plication/
My code:
Code: Select all
<iframe src="http://cornerstonecoachacademy.com/application.html" name="Life Coach Training Program Application" scrolling="auto" frameborder="no" align="center" height = "2850px" width = "850px">
</iframe>The code within the CC two files that call unto that Thank you page are...
The myform.php:
Code: Select all
/**
* The page to redirect to after the form is submitted.
*/
define('CC_FB_RESULTS_REDIRECT', 'http://cornerstonecoachacademy.com/thank-you-for-your-application/');Code: Select all
<hidden
name="thankyoupage"
value="http://cornerstonecoachacademy.com/thank-you-for-your-application/"
></hidden>Can you add a target to the php? I do not want to have my page open within the inner frame.