Need Help w/ iframe and TARGET _parent
-
Hi All,
I am having an issue using an iframe for a CoffeeCup Form Builder form. I am already using a plugin – Secure and Accessible PHP Contact Form v.2.0 – for my basic contact form, 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: https://cornerstonecoachacademy.com/life-coaching-training-program-application/
My code:
<iframe src="https://cornerstonecoachacademy.com/application.html" name="Life Coach Training Program Application" scrolling="auto" frameborder="no" align="center" height = "2850px" width = "850px">
</iframe>Now my issue (and I have gone to the CC forums and have had not even had a bite as to the answer) 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 two files that call unto that Thank you page are…
The myform.php:
/**
* The page to redirect to after the form is submitted.
*/
define('CC_FB_RESULTS_REDIRECT', 'https://cornerstonecoachacademy.com/thank-you-for-your-application/');and
The myform.xml:
<hidden
name="thankyoupage"
value="https://cornerstonecoachacademy.com/thank-you-for-your-application/"
></hidden>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. (A programmer I am not, so 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.
- The topic ‘Need Help w/ iframe and TARGET _parent’ is closed to new replies.